[jQuery] non-recursive find?
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