# HandlerBase

public class **HandlerBase** extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)  
implements [EntityResolver](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/EntityResolver.html) [DTDHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DTDHandler.html) [DocumentHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html) [ErrorHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html)


**This class is deprecated.**   
This class works with the deprecated
`https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html`
interface. It has been replaced by the SAX2
`https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/DefaultHandler.html`
class.

Default base class for handlers.

> *This module, both source code and documentation, is in the
> Public Domain, and comes with **NO WARRANTY**.* See <http://www.saxproject.org> for further information.

This class implements the default behaviour for four SAX1
interfaces: EntityResolver, DTDHandler, DocumentHandler,
and ErrorHandler. It is now obsolete, but is included in SAX2 to
support legacy SAX1 applications. SAX2 applications should use
the `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/helpers/DefaultHandler.html`
class instead.

Application writers can extend this class when they need to
implement only part of an interface; parser writers can
instantiate this class to provide default handlers when the
application has not supplied its own.

Note that the use of this class is optional.

<br />

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/EntityResolver.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DTDHandler.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html`

### Public Constructor Summary

|---|---|
|   | [HandlerBase](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/HandlerBase.html#HandlerBase())() |

### Public Method Summary

|---|---|
| void | [characters](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/HandlerBase.html#characters(char[],%20int,%20int))(char\[\] ch, int start, int length) Receive notification of character data inside an element. |
| void | [endDocument](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/HandlerBase.html#endDocument())() Receive notification of the end of the document. |
| void | [endElement](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/HandlerBase.html#endElement(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name) Receive notification of the end of an element. |
| void | [error](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/HandlerBase.html#error(org.xml.sax.SAXParseException))([SAXParseException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html) e) Receive notification of a recoverable parser error. |
| void | [fatalError](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/HandlerBase.html#fatalError(org.xml.sax.SAXParseException))([SAXParseException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html) e) Report a fatal XML parsing error. |
| void | [ignorableWhitespace](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/HandlerBase.html#ignorableWhitespace(char[],%20int,%20int))(char\[\] ch, int start, int length) Receive notification of ignorable whitespace in element content. |
| void | [notationDecl](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/HandlerBase.html#notationDecl(java.lang.String,%20java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) publicId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId) Receive notification of a notation declaration. |
| void | [processingInstruction](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/HandlerBase.html#processingInstruction(java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) target, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) data) Receive notification of a processing instruction. |
| [InputSource](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/InputSource.html) | [resolveEntity](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/HandlerBase.html#resolveEntity(java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) publicId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId) Resolve an external entity. |
| void | [setDocumentLocator](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/HandlerBase.html#setDocumentLocator(org.xml.sax.Locator))([Locator](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/Locator.html) locator) Receive a Locator object for document events. |
| void | [startDocument](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/HandlerBase.html#startDocument())() Receive notification of the beginning of the document. |
| void | [startElement](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/HandlerBase.html#startElement(java.lang.String,%20org.xml.sax.AttributeList))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, [AttributeList](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/AttributeList.html) attributes) Receive notification of the start of an element. |
| void | [unparsedEntityDecl](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/HandlerBase.html#unparsedEntityDecl(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) publicId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) notationName) Receive notification of an unparsed entity declaration. |
| void | [warning](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/HandlerBase.html#warning(org.xml.sax.SAXParseException))([SAXParseException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html) e) Receive notification of a parser warning. |

### Inherited Method Summary

From class [java.lang.Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |
| void | [finalize](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |
| final [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> | [getClass](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#getClass())() Returns the unique instance of `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html` that represents this object's class. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |
| final void | [notify](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| final void | [notifyAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |

From interface [org.xml.sax.EntityResolver](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/EntityResolver.html)

|---|---|
| abstract [InputSource](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/InputSource.html) | [resolveEntity](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/EntityResolver.html#resolveEntity(java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) publicId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId) Allow the application to resolve external entities. |

From interface [org.xml.sax.DTDHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DTDHandler.html)

|---|---|
| abstract void | [notationDecl](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DTDHandler.html#notationDecl(java.lang.String,%20java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) publicId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId) Receive notification of a notation declaration event. |
| abstract void | [unparsedEntityDecl](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DTDHandler.html#unparsedEntityDecl(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) publicId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) notationName) Receive notification of an unparsed entity declaration event. |

From interface [org.xml.sax.DocumentHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html)

|---|---|
| abstract void | [characters](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html#characters(char[],%20int,%20int))(char\[\] ch, int start, int length) Receive notification of character data. |
| abstract void | [endDocument](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html#endDocument())() Receive notification of the end of a document. |
| abstract void | [endElement](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html#endElement(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name) Receive notification of the end of an element. |
| abstract void | [ignorableWhitespace](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html#ignorableWhitespace(char[],%20int,%20int))(char\[\] ch, int start, int length) Receive notification of ignorable whitespace in element content. |
| abstract void | [processingInstruction](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html#processingInstruction(java.lang.String,%20java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) target, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) data) Receive notification of a processing instruction. |
| abstract void | [setDocumentLocator](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html#setDocumentLocator(org.xml.sax.Locator))([Locator](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/Locator.html) locator) Receive an object for locating the origin of SAX document events. |
| abstract void | [startDocument](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html#startDocument())() Receive notification of the beginning of a document. |
| abstract void | [startElement](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html#startElement(java.lang.String,%20org.xml.sax.AttributeList))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, [AttributeList](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/AttributeList.html) atts) Receive notification of the beginning of an element. |

From interface [org.xml.sax.ErrorHandler](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html)

|---|---|
| abstract void | [error](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html#error(org.xml.sax.SAXParseException))([SAXParseException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html) exception) Receive notification of a recoverable error. |
| abstract void | [fatalError](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html#fatalError(org.xml.sax.SAXParseException))([SAXParseException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html) exception) Receive notification of a non-recoverable error. |
| abstract void | [warning](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html#warning(org.xml.sax.SAXParseException))([SAXParseException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html) exception) Receive notification of a warning. |

## Public Constructors

#### public
**HandlerBase**
()

<br />

## Public Methods

#### public void
**characters**
(char\[\] ch, int start, int length)

Receive notification of character data inside an element.

By default, do nothing. Application writers may override this
method to take specific actions for each chunk of character data
(such as adding the data to a node or buffer, or printing it to
a file).

<br />

##### Parameters

| ch | The characters. |
| start | The start position in the character array. |
| length | The number of characters to use from the character array. |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html#characters(char[],%20int,%20int)`

#### public void
**endDocument**
()

Receive notification of the end of the document.

By default, do nothing. Application writers may override this
method in a subclass to take specific actions at the beginning
of a document (such as finalising a tree or closing an output
file).

<br />

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html#endDocument()`

#### public void
**endElement**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name)

Receive notification of the end of an element.

By default, do nothing. Application writers may override this
method in a subclass to take specific actions at the end of
each element (such as finalising a tree node or writing
output to a file).

<br />

##### Parameters

| name | the element name |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html#endElement(java.lang.String)`

#### public void
**error**
([SAXParseException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html) e)

Receive notification of a recoverable parser error.

The default implementation does nothing. Application writers
may override this method in a subclass to take specific actions
for each error, such as inserting the message in a log file or
printing it to the console.

<br />

##### Parameters

| e | The warning information encoded as an exception. |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html#warning(org.xml.sax.SAXParseException)`
- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html`

#### public void
**fatalError**
([SAXParseException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html) e)

Report a fatal XML parsing error.

The default implementation throws a SAXParseException.
Application writers may override this method in a subclass if
they need to take specific actions for each fatal error (such as
collecting all of the errors into a single report): in any case,
the application must stop all regular processing when this
method is invoked, since the document is no longer reliable, and
the parser may no longer report parsing events.

<br />

##### Parameters

| e | The error information encoded as an exception. |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html#fatalError(org.xml.sax.SAXParseException)`
- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html`

#### public void
**ignorableWhitespace**
(char\[\] ch, int start, int length)

Receive notification of ignorable whitespace in element content.

By default, do nothing. Application writers may override this
method to take specific actions for each chunk of ignorable
whitespace (such as adding data to a node or buffer, or printing
it to a file).

<br />

##### Parameters

| ch | The whitespace characters. |
| start | The start position in the character array. |
| length | The number of characters to use from the character array. |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html#ignorableWhitespace(char[],%20int,%20int)`

#### public void
**notationDecl**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) publicId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId)

Receive notification of a notation declaration.

By default, do nothing. Application writers may override this
method in a subclass if they wish to keep track of the notations
declared in a document.

<br />

##### Parameters

| name | The notation name. |
| publicId | The notation public identifier, or null if not available. |
| systemId | The notation system identifier. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DTDHandler.html#notationDecl(java.lang.String,%20java.lang.String,%20java.lang.String)`

#### public void
**processingInstruction**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) target, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) data)

Receive notification of a processing instruction.

By default, do nothing. Application writers may override this
method in a subclass to take specific actions for each
processing instruction, such as setting status variables or
invoking other methods.

<br />

##### Parameters

| target | The processing instruction target. |
| data | The processing instruction data, or null if none is supplied. |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html#processingInstruction(java.lang.String,%20java.lang.String)`

#### public [InputSource](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/InputSource.html)
**resolveEntity**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) publicId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId)

Resolve an external entity.

Always return null, so that the parser will use the system
identifier provided in the XML document. This method implements
the SAX default behaviour: application writers can override it
in a subclass to do special translations such as catalog lookups
or URI redirection.

<br />

##### Parameters

| publicId | The public identifier, or null if none is available. |
| systemId | The system identifier provided in the XML document. |
|---|---|

##### Returns

- The new input source, or null to require the default behaviour.

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/EntityResolver.html#resolveEntity(java.lang.String,%20java.lang.String)`

#### public void
**setDocumentLocator**
([Locator](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/Locator.html) locator)

Receive a Locator object for document events.

By default, do nothing. Application writers may override this
method in a subclass if they wish to store the locator for use
with other document events.

<br />

##### Parameters

| locator | A locator for all SAX document events. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html#setDocumentLocator(org.xml.sax.Locator)`
- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/Locator.html`

#### public void
**startDocument**
()

Receive notification of the beginning of the document.

By default, do nothing. Application writers may override this
method in a subclass to take specific actions at the beginning
of a document (such as allocating the root node of a tree or
creating an output file).

<br />

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html#startDocument()`

#### public void
**startElement**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, [AttributeList](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/AttributeList.html) attributes)

Receive notification of the start of an element.

By default, do nothing. Application writers may override this
method in a subclass to take specific actions at the start of
each element (such as allocating a new tree node or writing
output to a file).

<br />

##### Parameters

| name | The element type name. |
| attributes | The specified or defaulted attributes. |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DocumentHandler.html#startElement(java.lang.String,%20org.xml.sax.AttributeList)`

#### public void
**unparsedEntityDecl**
([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) name, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) publicId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) systemId, [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) notationName)

Receive notification of an unparsed entity declaration.

By default, do nothing. Application writers may override this
method in a subclass to keep track of the unparsed entities
declared in a document.

<br />

##### Parameters

| name | The entity name. |
| publicId | The entity public identifier, or null if not available. |
| systemId | The entity system identifier. |
| notationName | The name of the associated notation. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/DTDHandler.html#unparsedEntityDecl(java.lang.String,%20java.lang.String,%20java.lang.String,%20java.lang.String)`

#### public void
**warning**
([SAXParseException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html) e)

Receive notification of a parser warning.

The default implementation does nothing. Application writers
may override this method in a subclass to take specific actions
for each warning, such as inserting the message in a log file or
printing it to the console.

<br />

##### Parameters

| e | The warning information encoded as an exception. |
|---|---|

##### Throws

| [SAXException](https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXException.html) | Any SAX exception, possibly wrapping another exception. |
|---|---|

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/ErrorHandler.html#warning(org.xml.sax.SAXParseException)`
- `https://developers.google.com/j2objc/javadoc/jre/reference/org/xml/sax/SAXParseException.html`