Package org.apache.xml.dtm

Examples of org.apache.xml.dtm.DTMAxisIterator


     * nodes are taken, while 'ns' specifies the namespace URI type.
     */
    public DTMAxisIterator getNamespaceAxisIterator(int axis, int ns)
    {

        DTMAxisIterator iterator = null;

        if (ns == NO_TYPE) {
            return EMPTYITERATOR;
        }
        else {
View Full Code Here


    /**
     * Returns the nth descendant of a node
     */
    public DTMAxisIterator getNthDescendant(int type, int n, boolean includeself)
    {
        DTMAxisIterator source = (DTMAxisIterator) new TypedDescendantIterator(type);
        return new NthDescendantIterator(n);
    }
View Full Code Here

      }
      // Otherwise we must create a union iterator, add the nodes from
      // all the DOMs to this iterator, and return the union in the end.
      else if (arg instanceof DTMAxisIterator) {
    UnionIterator union = new UnionIterator(dom);
    DTMAxisIterator iterator = (DTMAxisIterator)arg;
    int node;

    while ((node = iterator.next()) != DTM.NULL) {
        String uri = dom.getStringValueX(node);
        // Get the URI from this node if no xml URI base is set
        if ((xmlURI == null) || xmlURI.equals("")) {
      xmlURI = dom.getDocumentURI(node);
      int sep = xmlURI.lastIndexOf('\\') + 1;
View Full Code Here

TOP

Related Classes of org.apache.xml.dtm.DTMAxisIterator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.