Thanks to all for the information, I think i just learned more about
ecma standards and e4x than I could have in a few days of reading!
Toby
On 27/09/2007, at 11:11 , shaun wrote:
Hi Peter,
Peter Hall wrote:
> You don't need to give the namespace variable the same as the
prefix that
> ActionScript gives it when you toString() it. Internally, it
doesn't use a
> name and just generates one when you convert the XML to a string.
>
> You can give it something more descriptive like:
>
> namespace w3xml = "http://www.w3.org/XML/1998/namespace";
> trace(""+xml.status.presence.(@w3xml::lang=='en')); // Away
>
Thanks for the information. That makes sense and was what I had
originally thought would work.
I originally tried calling the namespace variable xml to match the
prefix in the XML document, however I received an error. If I had read
the stacktrace message more carefully I'd have seen it was caused
by me
calling the namespace variable xml AND the XML variable xml.
Whoops! :)
cheers,
- shaun
-----------------------------------
Life is poetry, write it in your own words
-----------------------------------
Toby Tremayne
IT Director
Code Poet and Zen Master of the Heavy Sleep
Codename:Tuesday
02 8012 0953
0416 048 090
ICQ: 13107913