python xpath

Jason Jesso jesso1607 at rogers.com
Wed Jul 14 03:23:00 CEST 2004


flight = self.ctxt.xpathEval( "table/tr/td/a/text()" )
print flight[0]

I am evaluating this xpath expression using python's libxml2.

How can I get the actual text data?  When I print the result set I get text 
node information, like the address and stuff.

This is probably a stupid question, but I can't seem to get it.

Thanks for any help.



More information about the Python-list mailing list