mespace (with the URI set to an empty string). The scope of a
> default xml namespace declaration is within a function block, like the
> scope of a variable:.
>
>
> Hope that helps.
>
>
>
> -abdul
>
>
>
>
>
>
> -Original Message-----
>
Title: RE: [flexcoders] Parsing XML with namespaces in E4X (Flex2)
Hi,
Use "default xml namespace" directive to solve this problem. Sorry, it is not documented in current livedocs for Flex 2 alpha…We are working many things, so hopefully you would see it updated soon...
> var res:XML = http://example.com/";>
> appleorange
> ;
> trace(res.item[0]);
var res:XML =
http://example.com/";>
appleorange
;
var ns:Namespace = res.namespace();
trace(res.ns::item[0]);
cheers,
claus.
Yahoo! Groups Sponsor
Hi,
Is there a way in which I could parse XML with namespaces in E4X?
following code, I can see the value without namespace.
var res:XML = appleorange;
trace(res.item[0]);
but, following code, I could'nt.
var res:XML = http://example.com/";>
appleorange
;
trace(re
4 matches
Mail list logo