[xml] Namespace in XPath



I tried using namespace in XPath, and it does not seem to work:

   <doc xmlns:test="http://test.com";>
     <test:element>test</test:element>
   </doc>

XPath used is "/doc/test:element"

Is there another interface to pass the namespace URI mapping
for the prefix used in the XPath expression?

- Tak Sze




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