Python, XML and XPath

Enrico 4564 at 755189.45
Wed Dec 17 09:26:30 EST 2008


"Hole" <h0leforfun at gmail.com> ha scritto nel messaggio
news:daf5cd00-36dc-4ab4-976e-a6d859b52d0a at w24g2000prd.googlegroups.com...
> Hi all,
>
> I hope this is not an "overasked" question but I find myself quite
> confused about python xml management (I have to use python for a
> project and I come from java world, you know...where frameworks,
> libraries and tools to use are standard de iure or standard de facto).
>
> I need to use XML parsing with xpath: a simple xml reader.

You can try lxml, have a look here
http://codespeak.net/lxml/xpathxslt.html

>
> I've found that the standard distribution of python doesn't include
> xpath support modules so I've decided to add libxml2.
>
> I've installed cygwin c compiler but I still have errors like the
> following:
>
> C:\Python25\Lib\libxml2-python-2.6.9>python setup.py build install

I never used  libxml2 but version 2.6.9 seems quite old, according to this
page:
http://users.skynet.be/sbi/libxml-python/

Bye, Enrico






More information about the Python-list mailing list