org.apache.ws.jaxme.xs.parser
public class DOMBuilder extends Object implements ContentHandler
Converts a stream of SAX events into a DOM node.
Version: $Id: DOMBuilder.java 231785 2004-02-16 23:39:59Z jochen $
Constructor Summary | |
---|---|
DOMBuilder() Creates a new instance of DOMBuilder, which creates a new document. | |
DOMBuilder(Node pTarget) Creates a new instance of DOMBuilder, which creates a new element node in the given node. |
Method Summary | |
---|---|
void | characters(char[] ch, int start, int length) |
void | endDocument() |
void | endElement(String namespaceURI, String localName, String qName) |
void | endPrefixMapping(String prefix) |
Document | getDocument() Returns the document being used as object factory. |
Locator | getDocumentLocator() Returns the Locator. |
Element | getResult() Returns the result element. |
void | ignorableWhitespace(char[] ch, int start, int length) |
void | processingInstruction(String pTarget, String pData) |
void | setDocumentLocator(Locator pLocator) Sets the Locator. |
void | skippedEntity(String pName) |
void | startDocument() |
void | startElement(String pNamespaceURI, String pLocalName, String pQName, Attributes pAttr) |
void | startPrefixMapping(String prefix, String uri) |
Creates a new instance of DOMBuilder, which creates a new document. The document is available via {@link #getDocument()}.
Creates a new instance of DOMBuilder, which creates a new element node in the given node. The created node is available via {@link #getResult()}.
See Also: org.xml.sax.ContentHandler#endDocument()
Returns the document being used as object factory. In the case of the empty constructor, this is a new document. Otherwise it is the target nodes owner document.
Returns the Locator.
Returns the result element. In the case of the default constructor, this is the document element. Otherwise it is added to the target node via {@link org.w3c.dom.Node#appendChild(org.w3c.dom.Node)}.<(p>
Sets the Locator.
See Also: org.xml.sax.ContentHandler#startDocument()