Package org.exolab.adaptx.xml.parser
Interface DOMParser
-
- All Known Implementing Classes:
JAXPDOMParser,XercesParser
public interface DOMParserThis class is the basic interface the different DOM parsers need to implement for XSL:P support.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DOMParsercopyInstance()Creates a new copy of this DOMParser initialized with the same properties as this DOMParser.org.w3c.dom.DocumentcreateDocument()Creates a DOM Document for this DOMPackageorg.w3c.dom.DocumentreadDocument(URILocation uriLocation, ErrorObserver observer)Reads an XML Document from the given Reader.voidsetDocumentType(org.w3c.dom.Document document, java.lang.String systemId)Sets the DocumentType for the given Document.voidsetValidation(boolean validate)Sets whether or not to Validate the Document
-
-
-
Method Detail
-
copyInstance
DOMParser copyInstance()
Creates a new copy of this DOMParser initialized with the same properties as this DOMParser.- Returns:
- the new DOMParser instance
-
createDocument
org.w3c.dom.Document createDocument()
Creates a DOM Document for this DOMPackage- Returns:
- the new Document
-
readDocument
org.w3c.dom.Document readDocument(URILocation uriLocation, ErrorObserver observer)
Reads an XML Document from the given Reader.- Parameters:
uriLocation- the URILocation of the document to readerrorWriter- the PrintWriter to write all errors to
-
setDocumentType
void setDocumentType(org.w3c.dom.Document document, java.lang.String systemId)Sets the DocumentType for the given Document. The Document must be a Document supported by this DOMPackage
-
setValidation
void setValidation(boolean validate)
Sets whether or not to Validate the Document- Parameters:
validate- a boolean indicating whether or not to validate the Document
-
-