Hi,

There is some stuff in XML-RPC service that you may find interesting. An XML
document is received using HTTP and is then parsed into a hashtable.  You
may find code in there to give you some ideas.  

It would be great to parse an XML document straight into a Torque object and
then save() it.  The source XML document could come either from a database
or XML-RPC interface.

kind regards

        Dave Meaker

> -----Original Message-----
> From: Daniel Rall [mailto:[EMAIL PROTECTED]]
> Sent: 12 October 2001 01:20
> 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