logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: XPath error ?: msg#00063

Subject: Re: XPath error ?
Fabien SCHWOB wrote:
You mean like described in doc/xpath.txt or doc/api.txt?

http://codespeak.net/lxml/xpath.html
http://codespeak.net/lxml/api.html

The default namespace is None, but you can also use an XPath
expression like
"//xhtml:a" is you prefer.

I've seen these two pages. But the thing I would like to make is to make
an XPath query against the default namespace (like in <html
xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en-US" lang="en-US">).
How can I make that ?

something.xpath("//xhtml:a", {'xhtml':'http://www.w3.org/1999/xhtml'})

--Paul


<Prev in Thread] Current Thread [Next in Thread>