Hi Guys,
How can I convert XPath without namespace and prefix to the XPath with namespace and prefix.
For Eg:
I have a XML file like this
<?xml version="1.0" encoding="UTF-8"?>
<ns0:mt_test xmlns:ns0="http://hvpar">
<RECORD1>
<FIELD1>1</FIELD1>
<FIELD2>2</FIELD2>
</RECORD1>
</ns0:mt_test>
and I need to write XPath Expression to check whether FIELD1 contains value 1 or not
xpath="/ns0:mt_test/RECORD1/FIELD1" expect = "1"
But the above statement fails in executing the XPath expression.
Please guide how to handle namespace and prefix in above situation.
Thanks,
Raju.