All Packages Class Hierarchy This Package Previous Next Index
Interface oracle.xml.parser.NSDocumentHandler
- public interface NSDocumentHandler
- extends DocumentHandler
This interface extends the org.xml.sax.DocumentHandler
interface to provide Namespace support. SAX Applications that require
Namespace support should implement this interface and register with the
SAX Parser via Parser.setDocumentHandler()
.
-
endElement(NSElement)
- Receive notification of the end of an element.
-
startElement(NSElement, NSAttributeList)
- Receive notification of the beginning of an element.
startElement
public abstract void startElement(NSElement elem,
NSAttributeList attrlist) throws SAXException
- 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 endElement() event
for every startElement() event (even when the element is empty). All of
the element's content will be reported, inorder, before the
corresponding endElement() event.
By implementing this method instead of
org.xml.sax.DocumentHandler.startElement
, SAX Applications
can get the Namespace support provided by NSElement
and
NSAttributeList
.
- Parameters:
- elem - NSElement object
- attrlist - NSAttributeList for the element
- Throws: SAXException
- A
SAXException
could be thrown.
- See Also:
- startElement
endElement
public abstract void endElement(NSElement elem) throws SAXException
- Receive notification of the end of an element.
The SAX parser will invoke this method at the end of every element in
the XML document; there will be a corresponding startElement() event
for every endElement() event (even when the element is empty).
By implementing this method instead of
org.xml.sax.DocumentHandler.endElement
, SAX Applications
can get the Namespace support provided by NSElement
.
- Parameters:
- elem - NSElement object
- Throws: SAXException
- A
SAXException
could be thrown.
- See Also:
- endElement
All Packages Class Hierarchy This Package Previous Next Index