B
Brian Donovan
Hi All,
I'm trying to get xpath to work with the libxml2 python bindings.
I'm using the following
doc = libxml2.parseFile(filename)
result = doc.xpathEval('//*')
My test XML file has 10 nodes in it and I'm trying to get an element named
'element' (from an relaxng schema).
If I use the xpath expression '//*' I'll get a list with 10 nodes
including the element element as expected. If I try '//element' I'm
getting an empty list with no errors. Any idea where I could be going
wrong?
Brian
I'm trying to get xpath to work with the libxml2 python bindings.
I'm using the following
doc = libxml2.parseFile(filename)
result = doc.xpathEval('//*')
My test XML file has 10 nodes in it and I'm trying to get an element named
'element' (from an relaxng schema).
If I use the xpath expression '//*' I'll get a list with 10 nodes
including the element element as expected. If I try '//element' I'm
getting an empty list with no errors. Any idea where I could be going
wrong?
Brian