libxml2/xpath

maxk at touro.edu maxk at touro.edu
Thu Dec 16 09:46:45 EST 2004


>     # confDocument is a libxml2 document, from parseFile() etc
>     xp = confDocument.xpathNewContext()
>     xp.xpathRegisterNs("xhtml", "http://www.w3.org/1999/xhtml")
>     dirElement = xp.xpathEval( "/xhtml:html" )
>

Stupid question, but can the namespace somehow be changed to null to
make queries simpler?

thanks,
max.




More information about the Python-list mailing list