nu.xom.samples
Class DatabaseConverter

java.lang.Object
  extended by nu.xom.samples.DatabaseConverter

public class DatabaseConverter
extends java.lang.Object

Demonstrates the building of a structured XML document, from a relational database using JDBC. A different version of this example was originally developed for Chapter 4 of Processing XML with Java.

Version:
1.0
Author:
Elliotte Rusty Harold

Constructor Summary
DatabaseConverter(java.lang.String jdbcURL)
           
 
Method Summary
 nu.xom.Document extract(java.lang.String selectQuery)
           
static java.lang.String getSchemaType(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseConverter

public DatabaseConverter(java.lang.String jdbcURL)
                  throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

extract

public nu.xom.Document extract(java.lang.String selectQuery)
                        throws java.io.IOException
Throws:
java.io.IOException

getSchemaType

public static java.lang.String getSchemaType(int type)


Copyright 2002-2005 Elliotte Rusty Harold
elharo@metalab.unc.edu