开发者

xml parsing and reading the values in python

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


According to #python channel on FreeNode:

When parsing XML or HTML, use the lxml library


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.


BeautifulSoup or xml


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜