jas2.util.xml.parserwrappers
Class XercesDOMParser
- java.lang.Object
-
- jas2.util.xml.JASDOMParser
-
- jas2.util.xml.parserwrappers.XercesDOMParser
-
public class XercesDOMParser extends JASDOMParser
An implementation of DOMParser for the Xerces XML parser- See Also:
org.freehep.xml.util.DOMParser
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jas2.util.xml.JASDOMParser
JASDOMParser.JASXMLException
-
-
Constructor Summary
Constructors Constructor and Description XercesDOMParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description org.w3c.dom.Documentparse(java.io.Reader in, java.lang.String fileName)Create a DOM document by reading an XML fileorg.w3c.dom.Documentparse(java.io.Reader in, java.lang.String fileName, org.xml.sax.EntityResolver resolver)Create a DOM document by reading an XML file with an explicit entity resolver.-
Methods inherited from class jas2.util.xml.JASDOMParser
instance
-
-
-
-
Method Detail
-
parse
public org.w3c.dom.Document parse(java.io.Reader in, java.lang.String fileName) throws JASDOMParser.JASXMLExceptionDescription copied from class:JASDOMParserCreate a DOM document by reading an XML file- Specified by:
parsein classJASDOMParser- Parameters:
in- A reader set up to read an XML filefileName- The name of the file being read (used in error messages)- Returns:
- Document The resulting DOM
- Throws:
JASDOMParser.JASXMLException
-
parse
public org.w3c.dom.Document parse(java.io.Reader in, java.lang.String fileName, org.xml.sax.EntityResolver resolver) throws JASDOMParser.JASXMLExceptionDescription copied from class:JASDOMParserCreate a DOM document by reading an XML file with an explicit entity resolver. An entity resolver is typically used to specify where to find the DTD for the XML document.- Specified by:
parsein classJASDOMParser- Parameters:
in- A reader set up to read an XML filefileName- The name of the file being read (used in error messages)resolver- An entity resolver to use when reading the XML file- Returns:
- Document The resulting DOM
- Throws:
JASDOMParser.JASXMLException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG