[XML-SIG] xml parsing for weblogs.com xml file
Stefan Behnel
stefan_ml at behnel.de
Thu Oct 18 07:49:13 CEST 2007
Fabian López wrote:
> I am quite new in Python and I have been looking for a library to parse a
> xml document.
There are currently two options I'd recommend: lxml and ElementTree. Both are
mostly compatible, but much easier to use than SAX.
http://codespeak.net/lxml
> I know that maybe the best solution for what I am programming
> is to use SAX,
No. SAX is always a problem, rarely a solution and almost never the best solution.
> The problem is that weblog tag doesn't finish with </weblog> and I don't
> really know if this library will work. I only want to take the attributes of
> weblog tag. Can anyone tell me if SAX can do it or if I need some special
> and better library?
Both.
Stefan
More information about the XML-SIG
mailing list