Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# DOMLocator

` public interface DOMLocator `   
` `

|---|
| org.w3c.dom.DOMLocator |

<br />

*** ** * ** ***

`DOMLocator` is an interface that describes a location (e.g. where an error occurred).

See also the [Document Object Model (DOM) Level 3 Core Specification](http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407).

## Summary

| ### Public methods ||
|---|---|
| ` abstract int` | ` https://developer.android.com/reference/org/w3c/dom/DOMLocator#getByteOffset()() ` The byte offset into the input source this locator is pointing to or `-1` if there is no byte offset available. |
| ` abstract int` | ` https://developer.android.com/reference/org/w3c/dom/DOMLocator#getColumnNumber()() ` The column number this locator is pointing to, or `-1` if there is no column number available. |
| ` abstract int` | ` https://developer.android.com/reference/org/w3c/dom/DOMLocator#getLineNumber()() ` The line number this locator is pointing to, or `-1` if there is no column number available. |
| ` abstract https://developer.android.com/reference/org/w3c/dom/Node` | ` https://developer.android.com/reference/org/w3c/dom/DOMLocator#getRelatedNode()() ` The node this locator is pointing to, or `null` if no node is available. |
| ` abstract https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/org/w3c/dom/DOMLocator#getUri()() ` The URI this locator is pointing to, or `null` if no URI is available. |
| ` abstract int` | ` https://developer.android.com/reference/org/w3c/dom/DOMLocator#getUtf16Offset()() ` The UTF-16, as defined in \[Unicode\] and Amendment 1 of \[ISO/IEC 10646\], offset into the input source this locator is pointing to or `-1` if there is no UTF-16 offset available. |

## Public methods

### getByteOffset

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract int getByteOffset ()
```

The byte offset into the input source this locator is pointing to or `-1` if there is no byte offset available.

<br />

| Returns ||
|---|---|
| `int` | <br /> |

### getColumnNumber

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract int getColumnNumber ()
```

The column number this locator is pointing to, or `-1` if there is no column number available.

<br />

| Returns ||
|---|---|
| `int` | <br /> |

### getLineNumber

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract int getLineNumber ()
```

The line number this locator is pointing to, or `-1` if there is no column number available.

<br />

| Returns ||
|---|---|
| `int` | <br /> |

### getRelatedNode

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract Node getRelatedNode ()
```

The node this locator is pointing to, or `null` if no node is available.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/org/w3c/dom/Node` | <br /> |

### getUri

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract String getUri ()
```

The URI this locator is pointing to, or `null` if no URI is available.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### getUtf16Offset

Added in [API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract int getUtf16Offset ()
```

The UTF-16, as defined in \[Unicode\] and Amendment 1 of \[ISO/IEC 10646\], offset into the input source this locator is pointing to or `-1` if there is no UTF-16 offset available.

<br />

| Returns ||
|---|---|
| `int` | <br /> |