I want to fetching attribute value from XML with some conditions. I did not know how the group of values check in XPATH condition.
Below is my XML format:
<TTIDCData>
<CYAccountHide HideTable="False">
<fldAccountType Value="55" HideField="False" PrintValue="55" Description=""/>
<fldActNumber Value="502100" HideField="False" PrintValue="502100"/>
</CYAccountHide>
<CYAccountHide HideTable="False">
<fldAccountType Value="55" HideField="False" PrintValue="55" Description=""/>
<fldActNumber Value="502200" HideField="False" PrintValue="502200"/>
</CYAccountHide>
<CYAccountHide HideTable="False">
<fldAccountType Value="55" HideField="False" PrintValue="55" Description=""/>
<fldActNumber Value="502201" HideField="False" PrintValue="502200"/>
</CYAccountHide>
<person name="blair" address="502100"/>
<person name="blair" address="502200"/>
</TTIDCData>
I want to value which is not match.
Conditions is `//CYAccountHide/fldAccountType/@Value != //person/@address`
But that condition does not work.
Basically in my XML I have a value for `//CYAccountHide/fldAccountType/@Value` this attribute is `502100,502200,502201` and for `//person/@address` attribute have value is `502100,502200`. And I want to value with help of xpath is only `502201`
If verify only one value then //CYAccountHide/fldAccountTyoe/@Value != '502100' this condition is work but I want verify group of value with that XML tag.
Thanks in an advance...
Thanks to all....
No comments:
Post a Comment