I'd like to extract the list of emps from the following XML where name
starts with 'Jo' (returns Jones, Johnson). In SQL I can use the
expression 'where name like 'Jo%'.
Anyone have examples of how this be done via an E4X expression
(I could not find any examples of this in the docs).
TIA,
Patri
TECTED] On
Behalf Of pbrendanc
Sent: Thursday, November 06, 2008 12:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] E4X equivalent to SQL where 'like %' expression ?
I'd like to extract the list of emps from the following XML where name
starts with 'Jo' (returns Jo
lto:[EMAIL PROTECTED] On
Behalf Of Ryan Graham
Sent: Thursday, November 06, 2008 3:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] E4X equivalent to SQL where 'like %'
expression ?
The child nodes can be accessed like properties. For a starts-with
effect, you would
ubject: RE: [flexcoders] E4X equivalent to SQL where 'like %'
expression ?
Haha, looking at that, a more intuitive option would probably use the
indexOf() function instead of substring, that way
indexOf(input) == 0; //starts-with behavior
indexOf(input) > -1; //contains
oups.com
Subject: RE: [flexcoders] E4X equivalent to SQL where 'like %'
expression ?
Haha, looking at that, a more intuitive option would probably use the
indexOf() function instead of substring, that way
indexOf(input) == 0; //starts-with behavior
indexOf(input) > -1
-
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Tracy Spratt
> *Sent:* Thursday, November 06, 2008 3:46 PM
>
> *To:* flexcoders@yahoogroups.com
> *Subject:* RE: [flexcoders] E4X equivalent to SQL where 'like %'
> expr
D] On
Behalf Of Josh McDonald
Sent: Thursday, November 06, 2008 3:46 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] E4X equivalent to SQL where 'like %'
expression ?
It's a great syntax. The real question now becomes: "When are we going
to get to run .() on Array,
"
>
>
> On Fri, Nov 7, 2008 at 8:32 AM, Ryan Graham <[EMAIL PROTECTED]>wrote:
>
>> Ah, like a true lambda expression -- good tip!
>>
>> --
>> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
>> Behalf Of *Tracy Spratt
8 matches
Mail list logo