Hi All,
Need help .. I want to know wheather we can use, Xalan- XPath to get values from complex xml. We have complex xml and I tried evaluating _expression_ on this, but they do not return any results. [I can evaluate SAME _expression_ in XML Spy]
Following is xml code fyi ..
---------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<PSTPAuthenticator xmlns="http://www.w3.org/2001/04/xmlenc#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<userid Id="userid">
gb
</userid>
<SIV Id="siv">
340812
</SIV>
<SIP Id="sip">MontyPython</SIP>
</PSTPAuthenticator>
<PSTPAuthenticator xmlns="http://www.w3.org/2001/04/xmlenc#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<userid Id="userid">
gb
</userid>
<SIV Id="siv">
340812
</SIV>
<SIP Id="sip">MontyPython</SIP>
</PSTPAuthenticator>
---------------------------------------------------------------------------------------------------------
Above is least comlex XML we have. I tried with sample "ApplyXPath" example.
If I remove "xmlns" and "xmlns:xsi" - then it works.
If anyone has written any code for such an xml please email me.
Please advice.
Thanks, vikrant
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
