protected void parseChildren(XdmNode parent) { XdmSequenceIterator children = parent.axisIterator(Axis.CHILD); while (children.hasNext()) { XdmItem item = children.next(); if (item instanceof XdmNode) { XdmNode child = (XdmNode) item; if (child.getNodeKind() != XdmNodeKind.ELEMENT) continue; bindings.add(Binding.create(child)); } } }
protected XdmNode getNext() { while (descendants.hasNext()) { return (XdmNode) descendants.next(); } return null; }