RE: [Flashcoders] xml parsing problem

2006-10-27 Thread Merrill, Jason
ROTECTED] 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 = fu

Re: [Flashcoders] xml parsing problem

2006-10-27 Thread Jim Kremens
Steven, It would be cool if you made a version of that that was mtasc compatible... Jim Kremens On 10/27/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote: Or you could use XML2AS. // XML2AS - DO NOT AUTO FORMAT! _global.XML2AS = function(n, r) { var a, d, k; if (r[k=n.nodeName] == nu

RE: [Flashcoders] xml parsing problem

2006-10-27 Thread Steven Sacks | BLITZ
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.

RE: [Flashcoders] xml parsing problem

2006-10-27 Thread Jack Doyle
You might want to try using my XMLParser class. It translates the XML into ActionScript-friendly arrays/objects. http://www.greensock.com/ActionScript/XMLParser.zip Jack Doyle -Original Message- Date: Thu, 26 Oct 2006 22:13:50 -0400 From: "Bill Pelon" <[EMAIL PROTECTED]> Subject: [Flash

Re: [Flashcoders] xml parsing problem

2006-10-27 Thread Julien V.
Bill, Take a look at kirupa's XML guide here: http://www.kirupa.com/web/xml/XMLwayAround2.htm I also came across the same problem some time ago. I decided not to play with siblings because our xml schema (especially the order of the sibling nodes) couldn't be predictable. So I went to a custom