tags:

views:

47

answers:

4

Hello All,

I want to know how to read and store the xml data in an array.I m not sure which method to use or class

Can anyone tell which xml lib to use for reading the xml

A: 

That's quite a wide topic, and the best library depends on quite a few things, so it's not easy to answer this very meaningfully with so little details.

I'd suggest you look into xml.dom.minidom and see if it suits your needs.

Tim Pietzcker
A: 

BeautifulSoup or xml

ghostdog74
A: 

If you're using Python 2.5+, xml.etree.ElementTree is probably the easiest API to use in the stdlib.

Will McCutchen
A: 

According to #python channel on FreeNode:

When parsing XML or HTML, use the lxml library

Denilson Sá