[jQuery] Using Xpath to get row by value?

[jQuery] Using Xpath to get row by value?

<div>

<span style="font-size: 10pt; font-family: Arial;">I have an
xml (via ajax),
and I need to get an exact row based on the value of an entry. I can't seem to
find the exact method of doing it (if its even possible). The xml looks like:</span>



<span style="font-size: 10pt; font-family: Arial;"> 
<po_detail_line></span>


<span style="font-size: 10pt; font-family: Arial;"><span>  </span><po_line_id>252</po_line_id></span>


<span style="font-size: 10pt; font-family: Arial;"><span>   </span>….</span>


<span style="font-size: 10pt; font-family: Arial;"></po_detail_line></span>


<span style="font-size: 10pt; font-family: Arial;"><po_detail_line></span>


<span style="font-size: 10pt; font-family: Arial;"><span>  </span><po_line_id>253</po_line_id></span>


<span style="font-size: 10pt; font-family: Arial;"><span>   </span>….</span>


<span style="font-size: 10pt; font-family: Arial;"></po_detail_line></span>


<span style="font-size: 10pt; font-family: Arial;">I need to
get line 252. Ive tried using po_detail_line[po_line_id='252'] but it doesn't work
in jquery. This gets me the list of them, but I cant seem to figure out a
filter either. </span>



<span style="font-size: 10pt; font-family: Arial;">var xtbls =
$(XML.find("po_detail_line/po_line_id").each(function (i){</span>


<span style="font-size: 10pt; font-family: Arial;"><span>                       </span>alert(this.firstChild.nodeValue);</span>


<span style="font-size: 10pt; font-family: Arial;"><span>            </span>});</span>


<span style="font-size: 10pt; font-family: Arial;">Any ideas?</span>


</div>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/