Recipe 534109: XML to Python data structure

1 view
Skip to first unread message

shi shaozhong

unread,
Jan 6, 2009, 10:27:38 AM1/6/09
to django...@googlegroups.com
I am reading in a xml from a web service. I wish to find a Python
script to turn the xml into a Python data array for further
manipulation and to be saved in a .dbf file.

Has anyone tried the following script?
http://code.activestate.com/recipes/534109/

How do I use it?

Regards.

David

Ben Eliott

unread,
Jan 6, 2009, 1:33:15 PM1/6/09
to django...@googlegroups.com
Perhaps try:
http://www.crummy.com/software/BeautifulSoup/
is awesome and has good documentation

Rock

unread,
Jan 6, 2009, 1:56:13 PM1/6/09
to Django users
Elementtree is now part of the python distribution. I am using it in a
Django app I created for a client to extract data from XML provided by
a web service. It works well but the documentation could be clearer.

On Jan 6, 9:27 am, "shi shaozhong" <shishaozh...@gmail.com> wrote:
> I am reading in a xml from a web service.  I wish to find a Python
> script to turn the xml into a Python data array for further
> manipulation and to be saved in a .dbf file.
>
> Has anyone tried the following script?http://code.activestate.com/recipes/534109/
Reply all
Reply to author
Forward
0 new messages