tal wrote:
Hi,
When using xml document like :
<Revision xmlns="http://www.w3schools.com";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.w3schools.com foo.xsd">
...
</Revision>
SimpleXPathAPI.exe foo.xml /Revision .

It gives me an error: No nodes matched the location path "/Revision"
But if I remove the xmlns="http://www.w3schools.com"; it works.
You need to understand XML namespaces. To start, I suggest you look at the XSL FAQ:

http://www.dpawson.co.uk/xsl/sect2/N5536.html#d7594e1012

Once you understand why your location path returned no nodes, then search the archives of the mailing list for "PrefixResolver" to understand how to make this work with Xalan-C. You will need to modify the SimpleXPathAPI sample to make this work.

Dave

Reply via email to