Search the Flashcoders archives.
 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Matt Jurgemeyer
> Sent: Thursday, May 25, 2006 1:33 PM
> To: 'Flashcoders mailing list'
> Subject: RE: [Flashcoders] XML Parsing
> 
> Do you know of a good resource that might explain this to me? 
> It's a bit
> over my head at this point.
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Steven Sacks
> Sent: Thursday, May 25, 2006 2:02 PM
> To: 'Flashcoders mailing list'
> Subject: RE: [Flashcoders] XML Parsing
> 
> Or you could just use XML2AS
> 
> function XML2AS(n, r) {
>       var a, d, k;
>       if (r[k=n.nodeName] == null) r = ((a=r[k]=[{}]))[d=0];
>       else r = (a=r[k])[d=r[k].push({})-1];
>       if (n.hasChildNodes()) {
>               if ((k=n.firstChild.nodeType) == 1) {
>                       r.attributes = n.attributes;
>                       for (var i in k=n.childNodes) XML2AS(k[i], r);
>               } else if (k == 3) {
>                       a[d] = new String(n.firstChild.nodeValue);
>                       a[d].attributes = n.attributes;
>               }
>       }else r.attributes = n.attributes;
> }
> 
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
> 
> 
> 
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to