# DOMLocator

public interface **DOMLocator** implements [SourceLocator](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/SourceLocator.html) 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 `https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/SourceLocator.html`
object returned by an exception. A `https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/Transformer.html`
may use this object for purposes other than error reporting, for instance,
to indicate the source node that originated a result node.

### Public Method Summary

|---|---|
| abstract [Node](https://developers.google.com/j2objc/javadoc/jre/reference/org/w3c/dom/Node.html) | [getOriginatingNode](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/dom/DOMLocator.html#getOriginatingNode())() Return the node where the event occurred. |

### Inherited Method Summary

From interface [javax.xml.transform.SourceLocator](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/SourceLocator.html)

|---|---|
| abstract int | [getColumnNumber](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/SourceLocator.html#getColumnNumber())() Return the character position where the current document event ends. |
| abstract int | [getLineNumber](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/SourceLocator.html#getLineNumber())() Return the line number where the current document event ends. |
| abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getPublicId](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/SourceLocator.html#getPublicId())() Return the public identifier for the current document event. |
| abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getSystemId](https://developers.google.com/j2objc/javadoc/jre/reference/javax/xml/transform/SourceLocator.html#getSystemId())() Return the system identifier for the current document event. |

## Public Methods

#### public abstract [Node](https://developers.google.com/j2objc/javadoc/jre/reference/org/w3c/dom/Node.html)
**getOriginatingNode**
()

Return the node where the event occurred.

##### Returns

- The node that is the location for the event.