Class TypeStrippedDocument

java.lang.Object
net.sf.saxon.om.GenericTreeInfo
net.sf.saxon.tree.wrapper.TypeStrippedDocument
All Implemented Interfaces:
Source, TreeInfo

public class TypeStrippedDocument extends GenericTreeInfo
A TypeStrippedDocument represents a view of a real Document in which all nodes are untyped
  • Field Details

    • underlyingTree

      TreeInfo underlyingTree
  • Constructor Details

    • TypeStrippedDocument

      public TypeStrippedDocument(TreeInfo doc)
      Create a type-stripped view of a document
      Parameters:
      doc - the underlying document
  • Method Details

    • wrap

      public TypeStrippedNode wrap(NodeInfo node)
      Create a wrapped node within this document
    • selectID

      public NodeInfo selectID(String id, boolean getParent)
      Get the element with a given ID, if any
      Specified by:
      selectID in interface TreeInfo
      Overrides:
      selectID in class GenericTreeInfo
      Parameters:
      id - the required ID value
      getParent -
      Returns:
      the element with the given ID value, or null if there is none.