Class JAXPDOMParser
java.lang.Object
org.exolab.adaptx.xml.parser.JAXPDOMParser
- All Implemented Interfaces:
DOMParser
Creates a generic JAXP DOM Parser
- Version:
- $Revision: 3824 $ $Date: 2003-09-06 11:15:16 +0200 (Sat, 06 Sep 2003) $
- Author:
- Keith Visco
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a new copy of this DOMParser initialized with the same properties as this DOMParser.Creates a DOM DocumentreadDocument(URILocation location, ErrorObserver observer) Reads an XML Document from the given ReadervoidsetDocumentType(Document document, String systemId) Sets the DocumentType for the given documentvoidsetValidation(boolean validate) Sets whether or not to Validate the Document
-
Constructor Details
-
JAXPDOMParser
public JAXPDOMParser()Creates a new instance of the JAXPDOMParser wrapper
-
-
Method Details
-
copyInstance
Creates a new copy of this DOMParser initialized with the same properties as this DOMParser.- Specified by:
copyInstancein interfaceDOMParser- Returns:
- the new DOMParser instance
-
setDocumentType
Sets the DocumentType for the given document- Specified by:
setDocumentTypein interfaceDOMParser- Parameters:
document- the Document to set the document type insystemId- the systemId for the document type
-
setValidation
public void setValidation(boolean validate) Sets whether or not to Validate the Document- Specified by:
setValidationin interfaceDOMParser- Parameters:
validate- a boolean indicating whether or not to validate the Document
-
createDocument
Creates a DOM Document- Specified by:
createDocumentin interfaceDOMParser- Returns:
- the new Document
-
readDocument
Reads an XML Document from the given Reader- Specified by:
readDocumentin interfaceDOMParser- Parameters:
location- the URILocation of the document to readobserver- the ErrorObserver for notification of errorsreader- the Reader for reading the XML streamfilename-
-