net.sf.saxon.om
public class SpaceStrippedDocument extends SpaceStrippedNode implements DocumentInfo
Constructor Summary | |
---|---|
SpaceStrippedDocument(DocumentInfo doc, Stripper stripper)
Create a space-stripped view of a document |
Method Summary | |
---|---|
boolean | containsPreserveSpace()
Does the stripped document contain any xml:space="preserve" attributes? |
Configuration | getConfiguration()
Get the configuration previously set using setConfiguration |
long | getDocumentNumber()
Get the unique document number |
NamePool | getNamePool()
Get the name pool used for the names in this document |
Stripper | getStripper()
Get the document's stripper |
String[] | getUnparsedEntity(String name)
Get the unparsed entity with a given name |
Iterator<String> | getUnparsedEntityNames()
Get the list of unparsed entities defined in this document |
NodeInfo | selectID(String id, boolean getParent)
Get the element with a given ID, if any |
SpaceStrippedNode | wrap(NodeInfo node)
Create a wrapped node within this document |
Parameters: doc the underlying document stripper an object that contains the rules defining which whitespace text nodes are to be absent from the view
Parameters: name the name of the entity
Returns: an Iterator, whose items are of type String, containing the names of all unparsed entities defined in this document. If there are no unparsed entities or if the information is not available then an empty iterator is returned
Parameters: id the required ID value getParent
Returns: the element with the given ID value, or null if there is none.