Esempio n. 1
0
  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));
      }
    }
  }
Esempio n. 2
0
 protected XdmNode getNext() {
   while (descendants.hasNext()) {
     return (XdmNode) descendants.next();
   }
   return null;
 }