[XML-SIG] xml parsing for weblogs.com xml file

Fabian López fabian at syameses.com
Mon Oct 22 20:37:34 CEST 2007


Thanks, that's great, I am using lxml library and works perfectly!

2007/10/18, Stefan Behnel <stefan_ml at behnel.de>:
>
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/xml-sig/attachments/20071022/b32db22b/attachment.htm 


More information about the XML-SIG mailing list