libxml2/xpath

Martijn Faassen faassen at infrae.com
Thu Dec 16 06:12:57 EST 2004


Maxim Khesin wrote:
> I am trying to do some xpath on
> http://fluidobjects.com/doc.xhtml
> but cannot get past 'point A' (that is, I am totally stuck):
> 
> 
>>>import libxml2
>>>mydoc = libxml2.parseDoc(text)
>>>mydoc.xpathEval('/html')
>>>[]
> 
> 
> this returns an empty resultlist, which just seems plain wrong. Can anyone
> throw a suggestion to the stupid?

Is the html element in a namespace?

Regards,

Martijn




More information about the Python-list mailing list