A very basic XPath error

hartlemon

New Member
I am using http://xpath.online-toolz.com/tools/xpath-editor.phpas an online XPath evaluator. I tried a few others but it's all the sameI have the following in my xml :- \[code\]<?xml version="1.0"?><test xmlns="abc"></test>\[/code\]Now the XPath queries\[code\]/.\[/code\]gives me the output :- \[code\]<test xmlns="abc"></test>\[/code\]However, the queries\[code\]test/test//test\[/code\]Do not give me any output at all. I'm doing a very basic mistake but I can't figure out what. I think it's got something to do with namespaces but changing the queries to \[code\]abc:test\[/code\]doesn't help either because it gives an Invalid Expression error. I'm using http://www.w3schools.com/xpath http://www.tizag.com/xmlTutorial/xpathtutorial.php &http://oreilly.com/perl/excerpts/system-admin-with-perl/ten-minute-xpath-utorial.htmlas my sources for XPath tutorials.
 
Back
Top