[xml] python xpath



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.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]