List of utility methods to do XML Node Next
Element | getNextElementNode(Node node) Returns the next Element node. while (node != null) { if (Node.ELEMENT_NODE == node.getNodeType()) return (Element) node; node = node.getNextSibling(); return null; |
Node | getNextElementNode(Node node) get Next Element Node Node next = node.getNextSibling(); while (!(next instanceof Element) && next != null) { next = next.getNextSibling(); if (next instanceof Text) { return null; return next; ... |
Node | getNextNode(Node current) get Next Node if (current == null) { System.out.println("NODE IS NULL"); return null; boolean found = false; boolean childVisited = false; while (found != true) { if (current.hasChildNodes() && childVisited == false) { ... |
Node | getNextNodeByName(Node currentNode, String tagName) Search across the tree for a given sibling return getNextSiblingByName(currentNode, tagName);
|
Node | getNextTypedNode(Node node, short nodeType) get Next Typed Node node = node.getNextSibling(); while (node != null && node.getNodeType() != nodeType) { node = node.getNextSibling(); return node; |
Node | getNextTypedNode(Node node, short nodeType) get Next Typed Node node = node.getNextSibling(); while (node != null && node.getNodeType() != nodeType) { node = node.getNextSibling(); return node; |
Node | getNextTypedNode(Node node, short nodeType) get Next Typed Node node = node.getNextSibling(); while (node != null && node.getNodeType() != nodeType) { node = node.getNextSibling(); return node; |