jquery xml select

Posted by Geln on Stack Overflow See other posts from Stack Overflow or by Geln
Published on 2010-04-20T02:34:51Z Indexed on 2010/04/20 2:43 UTC
Read the original article Hit count: 455

Filed under:
|
|

hi,

How to select items whose sub-tag key's text starts with '001'?

<root>
    <item>
        <key>001001</key>
        <text>thanks</text>
    </item>
    <item>
        <key>001002</key>
        <text>very</text>
    </item>
    <item>
        <key>002001</key>
        <text>much</text>
    </item>
</root>



$(xml).find("item>[filter string]").each(function()
{
    alert(this);
});

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about Xml