Skip to main content


developerWorks  >  XML  >

Using JDBC to extract data into XML

developerWorks

Level: Intermediate

Nicholas Chase (nicholas@nicholaschase.com), Writer, Freelance

28 Sep 2001

Register now or sign in using your IBM ID and password.

This tutorial is designed to assist Java developers who need to extract information from a database and place it into an XML document.

Prerequisites

The tutorial assumes that you are already familiar with Java and XML in general, and the Document Object Model (DOM) in particular. You should be familiar with Java programming, but prior Java Database Connectivity (JDBC) knowledge is not required to master the techniques described in this tutorial. The tutorial briefly covers the basics of SQL. GUI programming knowledge is not necessary because application input/output is handled from the command line.


System requirements

You will need JavaScript enabled on your browser.

This tutorial will help you understand the topic even if you read the examples rather than trying them out. If you do want to try the examples as you go through this tutorial, make sure you have the following tools installed and working correctly:

  • A text editor: XML and Java source files are simply text. To create and read them, a text editor is all you need.
  • A Java environment such as the Java 2 SDK.
  • Java APIs for XML Processing: Also known as JAXP 1.1, this is the reference implementation that Sun provides.
  • Any database that understands SQL, as long as you have an ODBC or JDBC driver.



Duration

Under one hour


Formats

html, pdf


Share this....

digg Digg this story del.icio.us del.icio.us Slashdot Slashdot it!


Back to top


Document options

Document options requiring JavaScript are not displayed


My developerWorks needs you!

Connect to your technical community