could get NodeType_1 then get it's .siblings()?

On May 19, 8:49 am, Ari <ari.hayri...@gmail.com> wrote:
> Hi,
> I parse XML with JQuery and my XML looks like this:
>
> <record>
>     <NodeType_1>
>         <NodeType_2/>
>    </NodeType_1>
>
>     <NodeType_2>
>        <NodeType_3/>
>    </NodeType_2>
>
>    <NodeType_4/>
> </record>
>
> I need to group first level of nodes by their types according certain
> rules. So I have now something like this:
> Nodes_A = $(xml).children().find("NodeType_2,NodeType_4");
> Nodes_B = $(xml).children().find("NodeType_1,NodeType_5");
>
> The problem is that find is recursive and I only need the first level.
> Is there a way to do this with JQuery?
>
> I'll appreciate any help,
> Ari

Reply via email to