org.apache.html.dom
Class HTMLBuilder
java.lang.Object
org.apache.html.dom.HTMLBuilder
- org.xml.sax.DocumentHandler
public class HTMLBuilder
extends java.lang.Object
implements org.xml.sax.DocumentHandler
This is a SAX document handler that is used to build an HTML document.
It can build a document from any SAX parser, but is specifically tuned
for working with the OpenXML HTML parser.
$Revision: 319808 $ $Date: 2004-02-24 18:34:05 -0500 (Tue, 24 Feb 2004) $protected org.apache.xerces.dom.ElementImpl | _current - The current node in the document into which elements, text and
other nodes will be inserted.
|
protected HTMLDocumentImpl | _document - The document that is being built.
|
protected Vector | _preRootNodes - The document is only created the same time as the document element, however, certain
nodes may precede the document element (comment and PI), and they are accumulated
in this vector.
|
_current
protected org.apache.xerces.dom.ElementImpl _current
The current node in the document into which elements, text and
other nodes will be inserted. This starts as the document iself
and reflects each element that is currently being parsed.
_preRootNodes
protected Vector _preRootNodes
The document is only created the same time as the document element, however, certain
nodes may precede the document element (comment and PI), and they are accumulated
in this vector.
characters
public void characters(String text)
throws org.xml.sax.SAXException
characters
public void characters(char[] text,
int start,
int length)
throws org.xml.sax.SAXException
endDocument
public void endDocument()
throws org.xml.sax.SAXException
- endDocument in interface org.xml.sax.DocumentHandler
endElement
public void endElement(String tagName)
throws org.xml.sax.SAXException
- endElement in interface org.xml.sax.DocumentHandler
getHTMLDocument
public org.w3c.dom.html.HTMLDocument getHTMLDocument()
ignorableWhitespace
public void ignorableWhitespace(char[] text,
int start,
int length)
throws org.xml.sax.SAXException
processingInstruction
public void processingInstruction(String target,
String instruction)
throws org.xml.sax.SAXException
- processingInstruction in interface org.xml.sax.DocumentHandler
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator locator)
- setDocumentLocator in interface org.xml.sax.DocumentHandler
startDocument
public void startDocument()
throws org.xml.sax.SAXException
- startDocument in interface org.xml.sax.DocumentHandler
startElement
public void startElement(String tagName,
org.xml.sax.AttributeList attrList)
throws org.xml.sax.SAXException
- startElement in interface org.xml.sax.DocumentHandler
Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.