Jquery syntax to read XML file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kravig
    New Member
    • Feb 2008
    • 1

    Jquery syntax to read XML file

    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.

    Code:
    <Property>
         <Name>TITLE</Name>
         <Type>string</Type>
        <Value>someText</Value>
    </Property>
    <Property>
        <Name>Id</Name>
        <Type>int</Type>
        <Value>12345</Value>
    </Property>
    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.
  • mzmishra
    Recognized Expert Contributor
    • Aug 2007
    • 390

    #2
    Look into this link

    Comment

    Working...