public interface DOMParser
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 for this DOMPackage
|
org.w3c.dom.Document |
readDocument(URILocation uriLocation,
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
|
DOMParser copyInstance()
org.w3c.dom.Document createDocument()
org.w3c.dom.Document readDocument(URILocation uriLocation, ErrorObserver observer)
uriLocation
- the URILocation of the document to readerrorWriter
- the PrintWriter to write all errors tovoid setDocumentType(org.w3c.dom.Document document, java.lang.String systemId)
void setValidation(boolean validate)
validate
- a boolean indicating whether or not to
validate the Document