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 node
|Modifier and Type||Method and Description|
Copy this node to a given Receiver.
Get the NodeInfo object representing the parent of this node
Return an iteration over all the nodes reached by the given axis from this node
atomize, compareOrder, equals, generateId, getAttributeValue, getBaseURI, getColumnNumber, getDeclaredNamespaces, getDisplayName, getFingerprint, getLineNumber, getLocalPart, getNodeKind, getPrefix, getRealNode, getRoot, getSchemaType, getStringValue, getStringValueCS, getSystemId, getTreeInfo, getUnderlyingNode, getURI, hasChildNodes, hasFingerprint, hashCode, isId, isIdref, isNilled, iterateAxis, saveLocation, setSystemId
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getConfiguration, getGenre, getPublicId, isSameNodeInfo, isStreamed, toShortString
getLength, head, itemAt, iterate, iterator, reduce, subsequence, toGroundedValue
asIterable, effectiveBooleanValue, materialize
public DocumentInfo(NodeInfo node)
public void copy(Receiver out, int copyOptions, Location locationId) throws XPathException
This method is primarily for internal use. It should not be considered a stable part of the Saxon API.
The default implementation invokes
Navigator.copy(this, out, copyOptions, locationId); which
is always adequate.
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
locationId- If non-null, identifies the location of the instruction that requested this copy. If zero, indicates that the location information is not available
XPathException- if any downstream error occurs
public NodeInfo getParent()
public AxisIterator iterateAxis(byte axisNumber)
axisNumber- an integer identifying the axis; one of the constants defined in class
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.