I am having a generic xml which looks like below
<Results>
<Columns>
<Column>Center ID</Column>
<Column>Center Name</Column>
/Columns>
<Result>
<Data>32452368</Data>
<Data>Center1</Data>
</Result>
<Result>
<Data>32452368</Data>
<Data> Center2</Data>
</Result>
</Results>
I am trying use jquery to read the data from this xml.
$(xml).find("Results/Result").each(function()
{
}
But i need to know some way ,to read them in order,like the first data in is always Center ID.
Any suggestions…
Thanks,
How about something like this:
The only thing that had you off on the wrong track was use of
/in your selector, which is not a valid CSS/jQuery selector.>is used to indicate a parent/child relationship.Results > Resultis the key.