Package org.geotools.xsd
Class DOMParser
- Object
-
- DOMParser
-
public class DOMParser extends Object
Parses a DOM (Document Object Model) using the geotools xml binding system.This parser should be used if the source xml being parsed has already been parsed into a
Document
. If not use one ofParser
orParser
.- Author:
- Justin Deoliveira, The Open Planning Project
-
-
Constructor Summary
Constructors Constructor Description DOMParser(Configuration configuration, Document document)
Creates a new instance of the parser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
parse()
Parses the supplied DOM returning a single object representing the result of the parse.
-
-
-
Constructor Detail
-
DOMParser
public DOMParser(Configuration configuration, Document document)
Creates a new instance of the parser.- Parameters:
configuration
- Object representing the configuration of the parser.document
- An xml document.
-
-
Method Detail
-
parse
public Object parse() throws IOException, SAXException, ParserConfigurationException
Parses the supplied DOM returning a single object representing the result of the parse.- Returns:
- The object representation of the root element of the document.
- Throws:
IOException
SAXException
ParserConfigurationException
-
-