Hi there,
I have the following sample xml:
<Questions>
<Are-You-Pregnant answer="N"/>
<Are-You-Male answer="Y"/>
<co-current-continue answer="Y"/>
<co-covered-by-medicare answer="Y"/>
</Questions>
What is the XPath Expression that i need to get the answer = Y or N?
Eg: /Questions/Are-You-Pregnant[@anwer]
I have to rewrite the xml to the following format?
<Question>
<Pregnant>N</Pregnant>
<Male>N</Male>
</Question>
Using what xpath expression can i get the attribute value?
Thanks..
I have the following sample xml:
<Questions>
<Are-You-Pregnant answer="N"/>
<Are-You-Male answer="Y"/>
<co-current-continue answer="Y"/>
<co-covered-by-medicare answer="Y"/>
</Questions>
What is the XPath Expression that i need to get the answer = Y or N?
Eg: /Questions/Are-You-Pregnant[@anwer]
I have to rewrite the xml to the following format?
<Question>
<Pregnant>N</Pregnant>
<Male>N</Male>
</Question>
Using what xpath expression can i get the attribute value?
Thanks..