Can you provide some usage instructions (i.e. what the arguments n and r
are for)?

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-----Original Message-----
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ
>>Sent: Friday, October 27, 2006 4:47 PM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] xml parsing problem
>>
>>Or you could use XML2AS.
>>
>>// XML2AS - DO NOT AUTO FORMAT!
>>_global.XML2AS = function(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;
>>}
>>_______________________________________________
>>[email protected]
>>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
_______________________________________________
[email protected]
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