All Packages Class Hierarchy This Package Previous Next Index
Interface oracle.xml.parser.v2.XMLDocumentHandler
- public interface XMLDocumentHandler
- extends DocumentHandler
This interface extends the org.xml.sax.DocumentHandler
interface. SAX Applications requiring Namespace support must implement
this interface and register with the SAX Parser via
Parser.setDocumentHandler()
.
-
cDATASection(char[], int, int)
- Receive notification of a CDATA Section.
-
comment(String)
- Receive notification of a comment.
-
endDoctype()
- Receive notification of end of the DTD.
-
endElement(NSName)
- Receive notification of the end of an element.
-
setDoctype(DTD)
- Receive notification of a DTD (Document Type node).
-
setTextDecl(String, String)
- Receive notification of a Text XML Declaration.
-
setXMLDecl(String, String, String)
- Receive notification of a XML Declaration.
-
startElement(NSName, SAXAttrList)
- Receive notification of the beginning of an element.
startElement
public abstract void startElement(NSName elem,
SAXAttrList 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 NSName
and
SAXAttrList
.
- Parameters:
- elem - NSName object
- attrlist - SAXAttrList for the element
- Throws: SAXException
- A
SAXException
could be thrown.
- See Also:
- startElement
endElement
public abstract void endElement(NSName 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 NSName
.
- Parameters:
- elem - NSName object
- Throws: SAXException
- A
SAXException
could be thrown.
- See Also:
- endElement
setXMLDecl
public abstract void setXMLDecl(String version,
String standalone,
String encoding) throws SAXException
- Receive notification of a XML Declaration.
The Parser will invoke this method once for XML Decl
- Parameters:
- version - The version number
- standalone - The standalone value (or null, if not specifed)
- encoding - The encoding name (or null, if not specifed)
- Throws: SAXException
- Any SAX exception, possibly
wrapping another exception.
setTextDecl
public abstract void setTextDecl(String version,
String encoding) throws SAXException
- Receive notification of a Text XML Declaration.
The Parser will invoke this method once for each text XML Decl
- Parameters:
- version - The version number (or null, if not specified)
- encoding - The encoding name
- Throws: SAXException
- Any SAX exception, possibly
wrapping another exception.
comment
public abstract void comment(String data) throws SAXException
- Receive notification of a comment.
The Parser will invoke this method once for each comment
found: note that comment may occur before or after the main
document element.
- Parameters:
- data - The comment data, or null if
none was supplied.
- Throws: SAXException
- Any SAX exception, possibly
wrapping another exception.
cDATASection
public abstract void cDATASection(char ch[],
int start,
int length) throws SAXException
- Receive notification of a CDATA Section.
The Parser will invoke this method once for each CDATA Section
found.
- Parameters:
- ch - The CDATA section characters.
- start - The start position in the character array.
- length - The number of characters to use from the
character array.
- Throws: SAXException
- Any SAX exception, possibly
wrapping another exception.
setDoctype
public abstract void setDoctype(DTD dtd) throws SAXException
- Receive notification of a DTD (Document Type node).
The Parser will invoke this method after calling startDocument
to register the DTD used.
- Parameters:
- DTD - The DTD node
- Throws: SAXException
- Any SAX exception, possibly
wrapping another exception.
endDoctype
public abstract void endDoctype() throws SAXException
- Receive notification of end of the DTD.
- Throws: SAXException
- Any SAX exception, possibly
wrapping another exception.
All Packages Class Hierarchy This Package Previous Next Index