net.sf.saxon.om

Interface VirtualNode

public interface VirtualNode extends NodeInfo

This interface is implemented by NodeInfo implementations that act as wrappers on some underlying tree. It provides a method to access the real node underlying the virtual node, for use by applications that need to drill down to the underlying data.
Method Summary
ObjectgetUnderlyingNode()
Get the real node undelying this virtual node.

Method Detail

getUnderlyingNode

public Object getUnderlyingNode()
Get the real node undelying this virtual node. Note that this may itself be a VirtualNode; you may have to drill down through several layers of wrapping.

In some cases a single VirtualNode may represent an XPath text node that maps to a sequence of adjacent nodes (for example text nodes and CDATA nodes) in the underlying tree. In this case the first node in this sequence is returned.

Returns: The underlying node.