I don't think so. I think that's precisely the reason why it returns an
empty list instead of null. So you can safely "chain" toghether diferent
node names in your query.

Cheers
Juan Pablo Califano

2010/2/6 Alexander Farber <[email protected]>

> Thank you - I'll do, but
>
> On Sat, Feb 6, 2010 at 7:01 PM, Juan Pablo Califano
> <[email protected]> wrote:
> > Because your second query returns an empty list instead of null.
> >
> > So, instead of checking for null, just check the length of the result.
> >
> > trace(describeType(xml1.lobby)); trace(xml1.lobby.length()); // 1
> > trace(describeType(xml2.lobby)); trace(xml2.lobby.length()); // 0
>
> wouldn't it sometimes throw an error that
> I call a method length() on a null-object?
>
> Regards
> Alex
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to