[XML-SIG] help getting started with xpath

Stefan Behnel stefan_ml at behnel.de
Tue Jul 21 17:27:50 CEST 2009



Bo Laurent wrote:
> I'm new to lxml. I've parsed a simple document, as shown below.  But I
> every simple xpath() expression I try returns empty list. What am I
> doing wrong? Perhaps I need to spec the namespace to the parser?

Yes, exactly. See here:

http://codespeak.net/lxml/xpathxslt.html#xpath

Stefan


More information about the XML-SIG mailing list