libxml2/xpath

Maxim Khesin news at fluidobjects.com
Thu Dec 16 07:29:33 EST 2004


I do not believe it is... You can see the doc by clicking on the link. 
Does it have to be?
thanks,
m

Martijn Faassen wrote:
> 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