Package org.exolab.adaptx.xml.parser
Class XercesParser
java.lang.Object
org.exolab.adaptx.xml.parser.XercesParser
- All Implemented Interfaces:
DOMParser
Creates a DOM Package for use with Apache's Xerces parser.
- Version:
- $Revision: 3633 $ $Date: 2003-03-01 08:38:44 +0100 (Sat, 01 Mar 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 Readervoid
setDocumentType
(Document document, String systemId) Creates a DOM DocumentType using the DOM package of this DOMReadervoid
setValidation
(boolean validate) Sets whether or not to Validate the Document
-
Constructor Details
-
XercesParser
public XercesParser()Instantiate parser
-
-
Method Details
-
copyInstance
Creates a new copy of this DOMParser initialized with the same properties as this DOMParser.- Specified by:
copyInstance
in interfaceDOMParser
- Returns:
- the new DOMParser instance
-
setDocumentType
Creates a DOM DocumentType using the DOM package of this DOMReader- Specified by:
setDocumentType
in interfaceDOMParser
-
setValidation
public void setValidation(boolean validate) Sets whether or not to Validate the Document- Specified by:
setValidation
in interfaceDOMParser
- Parameters:
validate
- a boolean indicating whether or not to validate the Document
-
createDocument
Creates a DOM Document- Specified by:
createDocument
in interfaceDOMParser
- Returns:
- the new Document
-
readDocument
Reads an XML Document from the given Reader- Specified by:
readDocument
in interfaceDOMParser
- Parameters:
location
- the URILocation of the document to readobserver
- the ErrorObserver for notification of errorsreader
- the Reader for reading the XML streamfilename
-
-