I have a xml file similar to the one below. could any one please tell me the Jquery syntax to get the text inside <Value> element where the text inside <Name> element is TITLE.
I am quite new to Jquery and I tried using
$("Property>Val ue:eq(1)", this).text();
but the order of appearance changes all the time. so I would like to get the value by name.
Thanks in advance.
Code:
<Property>
<Name>TITLE</Name>
<Type>string</Type>
<Value>someText</Value>
</Property>
<Property>
<Name>Id</Name>
<Type>int</Type>
<Value>12345</Value>
</Property>
$("Property>Val ue:eq(1)", this).text();
but the order of appearance changes all the time. so I would like to get the value by name.
Thanks in advance.
Comment