Remember, you do not have to write the entire expression in line.
You can do:
Var xlList:XMLList = xmlData.someNode.(checkNode(*))[0];
Private var checkNode(xml:XML):Boolean {
trace(xml.toXMLString);
var bReturn:Boolean = false;
//do the logic to compare this node with the nodes in the Exceptions
node
return bReturn;
}
Tracy
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Ralf Bokelberg
Sent: Monday, March 24, 2008 12:00 PM
To: [email protected]
Subject: Re: [flexcoders] filter with e4x
i don't think it is possible using e4x alone. You have to use some
ActionScript.
r.
On Mon, Mar 24, 2008 at 2:35 PM, hannes.stockner
<[EMAIL PROTECTED] <mailto:mail%40hannesstockner.com> > wrote:
>
>
>
>
>
>
> Hi
>
> I have following xml:
>
> <root>
> <one>
> <Item id="123" name="first"/>
> <Item id="234" name="second"/>
> <Item id="345" name="third"/>
> </one>
> <two>
> <Excludes>
> <Exclude id="234"/>
> <Exclude id="345"/>
> </Excludes>
> </two>
> </root>
>
> how is it possible to get a XMLList object where I get all child nodes
> from node "one" where its id is not included in node "two"?
>
> thank you
>
>