| Modifier and Type | Field and Description |
|---|---|
| private Locator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | setDocumentLocator(Locator locator)
Overrides org. Implements org. Receive an object for locating the origin of SAX document events. |
| public void | startElement(String namespace, String localName, String qName, Attributes attrs)
Overrides org. Implements org. Receive notification of the beginning of an element. |
| locator | back to summary |
|---|---|
| private Locator locator | |
| DOMBuilder | back to summary |
|---|---|
| public DOMBuilder(DocumentBuilderFactory f) throws ParserConfigurationException | |
| setDocumentLocator | back to summary |
|---|---|
| public void setDocumentLocator(Locator locator) Overrides org. Implements org. Doc from org. Receive an object for locating the origin of SAX document events. SAX parsers are strongly encouraged (though not absolutely required) to supply a locator: if it does so, it must supply the locator to the application by invoking this method before invoking any of the other methods in the ContentHandler interface. The locator allows the application to determine the end position of any document-related event, even if the parser is not reporting an error. Typically, the application will use this information for reporting its own errors (such as character content that does not match an application's business rules). The information returned by the locator is probably not sufficient for use with a search engine. Note that the locator will return correct information only
during the invocation SAX event callbacks after
| |
| startElement | back to summary |
|---|---|
| public void startElement(String namespace, String localName, String qName, Attributes attrs) Overrides org. Implements org. Doc from org. Receive notification of the beginning of an element. The Parser will invoke this method at the beginning of every
element in the XML document; there will be a corresponding
This event allows up to three name components for each element:
Any or all of these may be provided, depending on the values of the http://xml.org/sax/features/namespaces and the http://xml.org/sax/features/namespace-prefixes properties:
Note that the attribute list provided will contain only
attributes with explicit values (specified or defaulted):
#IMPLIED attributes will be omitted. The attribute list
will contain attributes used for Namespace declarations
(xmlns* attributes) only if the
Like
| |