public class SAX2DOMConverter extends Object implements ContentHandler
w3c dom
representation
(in some local implementation, accessed via the JAXP architecture).sdc = new SAX2DOMConverter()
sdc.setDOMImplementation(DOMImplementation)
javax.xml.parsers.DocumentBuilderFactory.newInstance()
.newDocumentBuilder().getDOMImplementation()
sdc.getDocument()
Constructor and Description |
---|
SAX2DOMConverter() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] data,
int start,
int length) |
void |
endDocument() |
void |
endElement(String namespaceURI,
String localName,
String qName) |
void |
endPrefixMapping(String prefix) |
Document |
getDocument() |
DOMImplementation |
getDOMImplementation() |
void |
ignorableWhitespace(char[] data,
int start,
int length) |
void |
processingInstruction(String target,
String text) |
void |
setDocumentLocator(Locator locator) |
void |
setDocumentURI(String documentUri)
Goes directly to
Document . |
void |
setDOMImplementation(DOMImplementation domImpl) |
void |
skippedEntity(String name) |
void |
startDocument() |
void |
startDocument(String namespaceURI,
String qualifiedName)
The two strings are the URI/local name of the top-level element ("document element").
|
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes attrs) |
void |
startPrefixMapping(String prefix,
String namespaceURI) |
public void setDOMImplementation(DOMImplementation domImpl)
public DOMImplementation getDOMImplementation()
public void startDocument(String namespaceURI, String qualifiedName)
public void setDocumentURI(String documentUri)
Document
. Can be called once, before or
after {@#startDocument(String,String).public Document getDocument()
public void startElement(String namespaceURI, String localName, String qName, Attributes attrs)
startElement
in interface ContentHandler
public void endElement(String namespaceURI, String localName, String qName)
endElement
in interface ContentHandler
public void characters(char[] data, int start, int length)
characters
in interface ContentHandler
public void endDocument()
endDocument
in interface ContentHandler
public void endPrefixMapping(String prefix)
endPrefixMapping
in interface ContentHandler
public void ignorableWhitespace(char[] data, int start, int length)
ignorableWhitespace
in interface ContentHandler
public void processingInstruction(String target, String text)
processingInstruction
in interface ContentHandler
public void skippedEntity(String name)
skippedEntity
in interface ContentHandler
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
public void startDocument()
startDocument
in interface ContentHandler
public void startPrefixMapping(String prefix, String namespaceURI)
startPrefixMapping
in interface ContentHandler
see also the complete user documentation .