Similar to SAX2's Locator interface.
An application can implement this interface and
then register it with the setLocator() method to
find out in which line and column and file a given
node appears.
Java binding:
package org.w3c.dom;
public interface DOMLocator {
public int getLineNumber();
public int getColumnNumber();
public int getOffset();
public Node getErrorNode();
public String getUri();
}IDL:
interface DOMLocator {
readonly attribute long lineNumber;
readonly attribute long columnNumber;
readonly attribute long offset;
readonly attribute Node errorNode;
readonly attribute DOMString uri;
};