Package net.sf.saxon.tree.wrapper

## Class TypeStrippedDocument

- java.lang.Object
- - net.sf.saxon.om.GenericTreeInfo
  - - net.sf.saxon.tree.wrapper.TypeStrippedDocument

- All Implemented Interfaces:
    `javax.xml.transform.Source`, `TreeInfo`

      public class TypeStrippedDocument
      extends GenericTreeInfo

  A TypeStrippedDocument represents a view of a real Document in which all nodes are untyped

- - ### Field Summary

    - ### Fields inherited from class net.sf.saxon.om.GenericTreeInfo

      `root`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `TypeStrippedDocument​(TreeInfo doc)` | Create a type-stripped view of a document

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `NodeInfo` | `selectID​(java.lang.String id, boolean getParent)` | Get the element with a given ID, if any
    `TypeStrippedNode` | `wrap​(NodeInfo node)` | Create a wrapped node within this document

    - ### Methods inherited from class net.sf.saxon.om.GenericTreeInfo

      `getConfiguration, getDocumentNumber, getPublicId, getRootNode, getSpaceStrippingRule, getSystemId, getUnparsedEntity, getUnparsedEntityNames, getUserData, isStreamed, setConfiguration, setDocumentNumber, setRootNode, setSpaceStrippingRule, setSystemId, setUserData`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface javax.xml.transform.Source

      `isEmpty`

    - ### Methods inherited from interface net.sf.saxon.om.TreeInfo

      `isMutable, isTyped`

- - ### Constructor Detail

    - #### TypeStrippedDocument

          public TypeStrippedDocument​(TreeInfo doc)

      Create a type-stripped view of a document
      Parameters:
        `doc` - the underlying document

  - ### Method Detail

    - #### wrap

          public TypeStrippedNode wrap​(NodeInfo node)

      Create a wrapped node within this document

    - #### selectID

          public NodeInfo selectID​(java.lang.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.