jQuery - xpath find?

Posted by Steve on Stack Overflow See other posts from Stack Overflow or by Steve
Published on 2010-04-26T20:11:19Z Indexed on 2010/04/26 20:13 UTC
Read the original article Hit count: 155

Filed under:
|
|

If you have the xml below in $(xml), you would get droopy using:

$(xml).find("animal").find("dog").find("beagle").text()

Is there an equivalent way in jQuery to use xpath like $(xml).xpathfind("/animal/dog/beagle").text()?

<animal>
    <dog>
        <beagle>
            droopy
        </beagle>
        ...

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about Xml