org.exolab.adaptx.xml.parser
Interface DOMParser
- XercesParser
public interface DOMParser
This class is the basic interface the different DOM parsers need
to implement for XSL:P support.
copyInstance
public DOMParser copyInstance()
Creates a new copy of this DOMParser initialized
with the same properties as this DOMParser.
- the new DOMParser instance
createDocument
public Document createDocument()
Creates a DOM Document for this DOMPackage
- the new Document
readDocument
public Document readDocument(URILocation uriLocation,
ErrorObserver observer)
Reads an XML Document from the given Reader.
uriLocation
- the URILocation of the document to read
setDocumentType
public void setDocumentType(Document document,
String systemId)
Sets the DocumentType for the given Document. The
Document must be a Document supported by this
DOMPackage
setValidation
public void setValidation(boolean validate)
Sets whether or not to Validate the Document
validate
- a boolean indicating whether or not to
validate the Document