[xml] XPath with default namespace



I've toyed around using XPath to locate elements but have not had much
luck (ver 2.4.0 and CVS). My xml file uses a default namespace; when I
remove it XPath works. To test it do:
testXPath -i test/SVG/a-wf.xml "//desc"

I get
Object is a Node Set :
Set contains 0 nodes:

I had a copy of version 2.3.9 lying around so I tried it and it worked.

Thanks for any help.

B.T.W. thanks for the quick fix with the name function, it works great.

Charlie B.




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