public boolean FindElem(String szName) { boolean result = false; NodeModel node = pointer.GetNext(); while (node != null) { if (node.GetTagName().equalsIgnoreCase(szName)) { result = true; pointer = node; break; } node = node.GetNext(); } return result; }
public boolean FindElem() { boolean result = false; if (pointer == null) return result; NodeModel node = pointer.GetNext(); if (node != null) { result = true; pointer = node; } return result; }