Name

DOMLocator

Synopsis

This class extends SourceLocator to define a method for retrieving a DOM Node object, which is typically used to indicate the source of an error in the transformation process. See SourceLocator and TransformerException.

javax.xml.transform.dom.DOMLocator

Figure 20-8. javax.xml.transform.dom.DOMLocator

public interface DOMLocator extends javax.xml.transform.SourceLocator {
// Public Instance Methods
     org.w3c.dom.Node getOriginatingNode( );  
}

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.