| 
 | Oracle® XML Java API Reference Release 1 (10.1) B12024-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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().
| Method Summary | |
|  void | cDATASection(char[] ch, int start, int length)Receive notification of a CDATA Section. | 
|  void | comment(java.lang.String data)Receive notification of a comment. | 
|  void | endDoctype()Receive notification of end of the DTD. | 
|  void | endElement(NSName elem)Receive notification of the end of an element. | 
|  XMLDocumentHandler | getHandler()Get the next pipe-line node handler. | 
|  void | setDoctype(DTD dtd)Receive notification of a DTD (Document Type node). | 
|  void | setError(XMLError he)Receive notification of a XMLError handler. | 
|  void | setHandler(XMLDocumentHandler h)Receive notification of a next pipe-line node handler. | 
|  void | setTextDecl(java.lang.String version, java.lang.String encoding)Receive notification of a Text XML Declaration. | 
|  void | setXMLDecl(java.lang.String version, java.lang.String standalone, java.lang.String encoding)Receive notification of a XML Declaration. | 
|  void | setXMLSchema(java.lang.Object s)Receive notification of a XMLSchema object. | 
|  void | startElement(NSName elem, SAXAttrList attrlist)Receive notification of the beginning of an element. | 
| Methods inherited from interface org.xml.sax.DocumentHandler | 
| characters, endDocument, endElement, ignorableWhitespace, processingInstruction, setDocumentLocator, startDocument, startElement | 
| Method Detail | 
public void startElement(NSName elem,
SAXAttrList attrlist)
                  throws SAXException
By implementing this method instead of org.xml.sax.DocumentHandler.startElement, SAX Applications can get the Namespace support provided by NSName and SAXAttrList.
elem - NSName objectattrlist - SAXAttrList for the elementSAXException - A SAXException could be thrown.DocumentHandler.startElement(java.lang.String, org.xml.sax.AttributeList)
public void endElement(NSName elem)
                throws SAXException
By implementing this method instead of org.xml.sax.DocumentHandler.endElement, SAX Applications can get the Namespace support provided by NSName.
elem - NSName objectSAXException - A SAXException could be thrown.DocumentHandler.endElement(java.lang.String)
public void setXMLDecl(java.lang.String version,
                       java.lang.String standalone,
                       java.lang.String encoding)
                throws SAXException
The Parser will invoke this method once for XML Decl
version - The version numberstandalone - The standalone value (or null, if not specifed)encoding - The encoding name (or null, if not specifed)SAXException - Any SAX exception, possibly wrapping another exception.
public void setTextDecl(java.lang.String version,
                        java.lang.String encoding)
                 throws SAXException
The Parser will invoke this method once for each text XML Decl
version - The version number (or null, if not specified)encoding - The encoding nameSAXException - Any SAX exception, possibly wrapping another exception.
public void comment(java.lang.String data)
             throws SAXException
The Parser will invoke this method once for each comment found: note that comment may occur before or after the main document element.
data - The comment data, or null if none was supplied.SAXException - Any SAX exception, possibly wrapping another exception.
public void cDATASection(char[] ch,
                         int start,
                         int length)
                  throws SAXException
The Parser will invoke this method once for each CDATA Section found.
ch - The CDATA section characters.start - The start position in the character array.length - The number of characters to use from the character array.SAXException - Any SAX exception, possibly wrapping another exception.
public void setHandler(XMLDocumentHandler h)
                throws SAXException
h - The XMLDocumentHandler nodeSAXException - Any SAX exception, possibly wrapping another exception.public XMLDocumentHandler getHandler()
public void setError(XMLError he)
              throws SAXException
he - The XMLError objectSAXException - Any SAX exception, possibly wrapping another exception.
public void setXMLSchema(java.lang.Object s)
                  throws SAXException
s - The XMLSchema objectSAXException - Any SAX exception, possibly wrapping another exception.
public void setDoctype(DTD dtd)
                throws SAXException
The Parser will invoke this method after calling startDocument to register the DTD used.
SAXException - Any SAX exception, possibly wrapping another exception.
public void endDoctype()
                throws SAXException
SAXException - Any SAX exception, possibly wrapping another exception.| 
 | Oracle® XML Java API Reference Release 1 (10.1) B12024-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||