I would highly recommend JDom ,http://www.jdom.org, for playing with XML.
The developers of this API have really made working with xml, both writing
and reading, a breeze.  They use SAX and DOM APIs (JAXP and Xerces) as the
underlying connector to the XML documents.

Scott

-----Original Message-----
From: Daniel Rall [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 11, 2001 8:20 PM
To: [EMAIL PROTECTED]
Subject: Re: off-topic:XML to relational database tools


Shaun Campbell <[EMAIL PROTECTED]> writes:

> Sorry to raise a question that maybe slightly off topic but my company has
a
> need to read XML database files stored as a string in a database and write
> them as actual data records in another database so that they can report on
> the data. 
>
> My first thought was Torque because you start with xml data definition
files
> and then get all the java classes to write the data to the database but
then
> I realised that they were starting with data in XML format.  Has Turbine
got
> any other tools in its toolkit for doing this sort of thing?

I may have to do this myself within a few months.  I was going to
write a SAX2 parser which reads records from a XML file and uses
Torque's generated OM classes as the model to put the record data
into.  After your record is fleshed out, should be as easy as calling
yourOM.save() on it.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to