Package net.sf.saxon.xom

Examples of net.sf.saxon.xom.DocumentWrapper


    Node root = node;
    while (root.getParent() != null) {
      root = root.getParent();
    }

    DocumentWrapper docWrapper = null;
    if (docWrappers != null) docWrapper = (DocumentWrapper) docWrappers.get(root);
   
    if (docWrapper == null) { // root has not been seen before
      docWrapper = new DocumentWrapper(root, root.getBaseURI(), getStaticContext().getConfiguration());
     
      // remember the DocWrapper for the given root so we can reuse it later
      if (docWrappers != null) docWrappers.put(root, docWrapper);
    }
   
    return docWrapper.wrap(node);
  }
View Full Code Here

TOP

Related Classes of net.sf.saxon.xom.DocumentWrapper

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.