[XML-SIG] python parser project

Jose Rivera Merla jriveramerla at gmail.com
Wed Jul 22 00:09:50 CEST 2009

Hi Uche:
   Its my opinion that you coud do this easily with lxml for the XML part.
Just Google "Python LXML"

   Look at this page http://codespeak.net/lxml/tutorial.html

   The txt file is easy to handle with the split(',') command.

   The thing I don't know what you are talking it's about sending the XML to
a SQL Database, it's easier to handle the text file in SQL bulk insert
command, etc..

Jose Rivera

On Tue, Jul 21, 2009 at 12:19 PM, uche <uraniumore238 at gmail.com> wrote:

> Hi All,
> I am developing a python parsing program. This program takes two
> inputs a comma dilimeted txt file and an xml file, which represents
> the structure of the datafile. I am using python minidom to read in
> the xml file and create a tree structure in an object file. The next
> thing to do is to insert the data into the respective fields of the
> tree. Once I am done, I'd like to send this object to an sql database.
> Has anyone attempted to do this ? Is there an example code online that
> I can reference to ? ... More specifically what code will allow me to
> combine the data and tree structure into a complete object that I can
> use to populate the sql database ?
> Thanks.
> _______________________________________________
> XML-SIG maillist  -  XML-SIG at python.org
> http://mail.python.org/mailman/listinfo/xml-sig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/xml-sig/attachments/20090721/478bfd13/attachment.htm>

More information about the XML-SIG mailing list