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 _______________________________________________ XML-SIG maillist - XML-SIG@python.org http://mail.python.org/mailman/listinfo/xml-sig