org.geotools.xml
Class DOMParser

Object
  extended by DOMParser

public class DOMParser
extends Object

Parses a DOM (Document Object Model) using the geotools xml binding system.

Author:
Justin Deoliveira, The Open Planning Project
Module:
modules/extension/xsd-core (gt-xsd-core.jar)

Constructor Summary
DOMParser(Configuration configuration, Document document)
          Creates a new instance of the parser.
 
Method Summary
 Object parse()
          Parses the supplied DOM returning a single object respresenting the result of the parse.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 respresenting the result of the parse.

Returns:
The object representation of the root element of the document.
Throws:
IOException
SAXException
ParserConfigurationException


Copyright © 1996-2009 Geotools. All Rights Reserved.