dbxml.dom
Class JDBCDOMParser

java.lang.Object
  |
  +--dbxml.dom.JDBCDOMParser

public class JDBCDOMParser
extends java.lang.Object

DOM parser that works with a JDBC data source.

Author:
Ramnivas Laddad

Constructor Summary
JDBCDOMParser()
           
 
Method Summary
static org.w3c.dom.Document createDocument(JDBCInputSource inputSource)
          Creates a DOM tree from given JDBC data source The implementation uses XmlDocumentBuilder from Sun's Project X.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCDOMParser

public JDBCDOMParser()
Method Detail

createDocument

public static org.w3c.dom.Document createDocument(JDBCInputSource inputSource)
                                           throws org.xml.sax.SAXException,
                                                  java.io.IOException
Creates a DOM tree from given JDBC data source The implementation uses XmlDocumentBuilder from Sun's Project X. An XmlDocumentBuilder is configured with a JDBCSAXParser to get the DOM tree.
Parameters:
inputSource - a JDBC data source
Returns:
a DOM docuemnt corresponding to the given JDBC data source
Throws:
org.xml.sax.SAXException - exception thrown while parsing the input
java.io.IOException - exception thrown while parsing the input