public class DocumentInfo extends AbstractVirtualNode
Configuration.buildDocument(Source)
method to construct a tree. In earlier releases it was an interface implemented by all document
nodes; from 9.7 it is a wrapper object around the NodeInfo object that represents the actual
document nodedocWrapper, node, parent
ALL_NAMESPACES, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES
Constructor and Description |
---|
DocumentInfo(NodeInfo node) |
Modifier and Type | Method and Description |
---|---|
void |
copy(Receiver out,
int copyOptions,
Location locationId)
Copy this node to a given Receiver.
|
NodeInfo |
getParent()
Get the NodeInfo object representing the parent of this node
|
AxisIterator |
iterateAxis(byte axisNumber)
Return an iteration over all the nodes reached by the given axis from this node
|
atomize, compareOrder, comparePosition, equals, generateId, getAttributeValue, getBaseURI, getColumnNumber, getConfiguration, getDeclaredNamespaces, getDisplayName, getFingerprint, getLineNumber, getLocalPart, getNodeKind, getPrefix, getPublicId, getRealNode, getRoot, getSchemaType, getStringValue, getStringValueCS, getSystemId, getTreeInfo, getUnderlyingNode, getURI, hasChildNodes, hasFingerprint, hashCode, head, isId, isIdref, isNilled, isSameNodeInfo, isStreamed, iterate, iterateAxis, saveLocation, setSystemId
public DocumentInfo(NodeInfo node)
public void copy(Receiver out, int copyOptions, Location locationId) throws XPathException
NodeInfo
out
- the Receiver to which the node should be copied. It is the caller's
responsibility to ensure that this Receiver is open before the method is called
(or that it is self-opening), and that it is closed after use.copyOptions
- a selection of the options defined in CopyOptions
locationId
- If non-null, identifies the location of the instruction
that requested this copy. If zero, indicates that the location information
is not availableXPathException
- if any downstream error occurspublic NodeInfo getParent()
NodeInfo
public AxisIterator iterateAxis(byte axisNumber)
NodeInfo
axisNumber
- an integer identifying the axis; one of the constants
defined in class AxisInfo
AxisInfo
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.