javax.xml.transform.dom
Interface DOMLocator

All Superinterfaces:
SourceLocator sample code for javax.xml.transform.SourceLocator definition code for javax.xml.transform.SourceLocator

public interface DOMLocator
extends SourceLocator sample code for javax.xml.transform.SourceLocator definition code for javax.xml.transform.SourceLocator

Indicates the position of a node in a source DOM, intended primarily for error reporting. To use a DOMLocator, the receiver of an error must downcast the SourceLocator sample code for javax.xml.transform.SourceLocator definition code for javax.xml.transform.SourceLocator object returned by an exception. A Transformer sample code for javax.xml.transform.Transformer definition code for javax.xml.transform.Transformer may use this object for purposes other than error reporting, for instance, to indicate the source node that originated a result node.


Method Summary
 Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node getOriginatingNode sample code for javax.xml.transform.dom.DOMLocator.getOriginatingNode() definition code for javax.xml.transform.dom.DOMLocator.getOriginatingNode() ()
          Return the node where the event occurred.
 
Methods inherited from interface javax.xml.transform.SourceLocator sample code for javax.xml.transform.SourceLocator definition code for javax.xml.transform.SourceLocator
getColumnNumber sample code for javax.xml.transform.SourceLocator.getColumnNumber() definition code for javax.xml.transform.SourceLocator.getColumnNumber() , getLineNumber sample code for javax.xml.transform.SourceLocator.getLineNumber() definition code for javax.xml.transform.SourceLocator.getLineNumber() , getPublicId sample code for javax.xml.transform.SourceLocator.getPublicId() definition code for javax.xml.transform.SourceLocator.getPublicId() , getSystemId sample code for javax.xml.transform.SourceLocator.getSystemId() definition code for javax.xml.transform.SourceLocator.getSystemId()
 

Method Detail

getOriginatingNode sample code for javax.xml.transform.dom.DOMLocator.getOriginatingNode() definition code for javax.xml.transform.dom.DOMLocator.getOriginatingNode()

Node sample code for org.w3c.dom.Node definition code for org.w3c.dom.Node  getOriginatingNode()
Return the node where the event occurred.

Returns:
The node that is the location for the event.