public class JAXPDOMParser extends java.lang.Object implements DOMParser
| Constructor and Description |
|---|
JAXPDOMParser()
Creates a new instance of the JAXPDOMParser wrapper
|
| Modifier and Type | Method and Description |
|---|---|
DOMParser |
copyInstance()
Creates a new copy of this DOMParser initialized
with the same properties as this DOMParser.
|
org.w3c.dom.Document |
createDocument()
Creates a DOM Document
|
org.w3c.dom.Document |
readDocument(URILocation location,
ErrorObserver observer)
Reads an XML Document from the given Reader
|
void |
setDocumentType(org.w3c.dom.Document document,
java.lang.String systemId)
Sets the DocumentType for the given document
|
void |
setValidation(boolean validate)
Sets whether or not to Validate the Document
|
public JAXPDOMParser()
public DOMParser copyInstance()
copyInstance in interface DOMParserpublic void setDocumentType(org.w3c.dom.Document document,
java.lang.String systemId)
setDocumentType in interface DOMParserdocument - the Document to set the document type insystemId - the systemId for the document typepublic void setValidation(boolean validate)
setValidation in interface DOMParservalidate - a boolean indicating whether or not to
validate the Documentpublic org.w3c.dom.Document createDocument()
createDocument in interface DOMParserpublic org.w3c.dom.Document readDocument(URILocation location, ErrorObserver observer)
readDocument in interface DOMParserreader - the Reader for reading the XML streamfilename - observer - the ErrorObserver for notification of errors