I have the following xml from a string:
<XMLClient>
<ClientData>
<Control type=1>BtnSave</control>
<Control type=2>Suppliers.aspx</control>
...
...
...
</clientData>
</XMLClient>
what I want to do is to return true or false using weather the record/node exists where the control’s type attribute is 2 and the text equals Suppliers.aspx.
I want to use linq for this, and I don’t know I guess I’m gonna need some linq expression, not quite sure…
Thanks in advance for any suggestions!
Something like this should work: