[Flashcoders] RE: Better XML parsin
I wrote a class that might be useful to you. Just point it at your XML file and it'll load it and parse it into Arrays/Objects. See the top of the class file for some documentation. It can also reverse parse (dump an object back into XML format). http://www.greensock.com/ActionScript/XMLParser.zip This is the first time I'm making it available to the public, so I welcome comments/suggestions (be kind). It's been working quite well for me for months. Jack Doyle --- Date: Mon, 21 Aug 2006 15:46:24 -0400 From: Flash Mel [EMAIL PROTECTED] Subject: [Flashcoders] Better XML parsin Hello everyone, There has to be a better way to parse XML. Using for loops seems antiquated. Could I do a while loop and cycle through all the possible nodes? What else is out there for parsing XML in a cleaner fashion? Cheers! fM ___ 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
Re: [Flashcoders] RE: Better XML parsin
Jack - Awesome! I'm off to the store for a while, soon as I get back I'll give this a test. David - Thanks for the link. Looks useful as well. I'll give these a try and respond in a few thanks peeps. Cheers, fM On 8/21/06, Jack Doyle [EMAIL PROTECTED] wrote: I wrote a class that might be useful to you. Just point it at your XML file and it'll load it and parse it into Arrays/Objects. See the top of the class file for some documentation. It can also reverse parse (dump an object back into XML format). http://www.greensock.com/ActionScript/XMLParser.zip This is the first time I'm making it available to the public, so I welcome comments/suggestions (be kind). It's been working quite well for me for months. Jack Doyle --- Date: Mon, 21 Aug 2006 15:46:24 -0400 From: Flash Mel [EMAIL PROTECTED] Subject: [Flashcoders] Better XML parsin Hello everyone, There has to be a better way to parse XML. Using for loops seems antiquated. Could I do a while loop and cycle through all the possible nodes? What else is out there for parsing XML in a cleaner fashion? Cheers! fM ___ 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
Re: [Flashcoders] RE: Better XML parsin
I've found XFactor Studio's XPath library to be invaluable: http://www.xfactorstudio.com/ In a similar vein, does anyone here use a solid alternative to XML config files, perhaps with server-side object serialization or some such? -rw Flash Mel wrote: Jack - Awesome! I'm off to the store for a while, soon as I get back I'll give this a test. David - Thanks for the link. Looks useful as well. I'll give these a try and respond in a few thanks peeps. Cheers, fM On 8/21/06, Jack Doyle [EMAIL PROTECTED] wrote: I wrote a class that might be useful to you. Just point it at your XML file and it'll load it and parse it into Arrays/Objects. See the top of the class file for some documentation. It can also reverse parse (dump an object back into XML format). http://www.greensock.com/ActionScript/XMLParser.zip This is the first time I'm making it available to the public, so I welcome comments/suggestions (be kind). It's been working quite well for me for months. Jack Doyle --- Date: Mon, 21 Aug 2006 15:46:24 -0400 From: Flash Mel [EMAIL PROTECTED] Subject: [Flashcoders] Better XML parsin Hello everyone, There has to be a better way to parse XML. Using for loops seems antiquated. Could I do a while loop and cycle through all the possible nodes? What else is out there for parsing XML in a cleaner fashion? Cheers! fM ___ 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
Re: [Flashcoders] RE: Better XML parsin
I've used JSON (http://json.org/) before, not for config files, but for exchanging data between flash, java, and php. It's quite easy to use for someone with actionscript/javascript experience, and there are parsing libraries for most other languages as well. On 8/21/06, R.A. Williamson [EMAIL PROTECTED] wrote: I've found XFactor Studio's XPath library to be invaluable: http://www.xfactorstudio.com/ In a similar vein, does anyone here use a solid alternative to XML config files, perhaps with server-side object serialization or some such? -rw Flash Mel wrote: Jack - Awesome! I'm off to the store for a while, soon as I get back I'll give this a test. David - Thanks for the link. Looks useful as well. I'll give these a try and respond in a few thanks peeps. Cheers, fM On 8/21/06, Jack Doyle [EMAIL PROTECTED] wrote: I wrote a class that might be useful to you. Just point it at your XML file and it'll load it and parse it into Arrays/Objects. See the top of the class file for some documentation. It can also reverse parse (dump an object back into XML format). http://www.greensock.com/ActionScript/XMLParser.zip This is the first time I'm making it available to the public, so I welcome comments/suggestions (be kind). It's been working quite well for me for months. Jack Doyle --- Date: Mon, 21 Aug 2006 15:46:24 -0400 From: Flash Mel [EMAIL PROTECTED] Subject: [Flashcoders] Better XML parsin Hello everyone, There has to be a better way to parse XML. Using for loops seems antiquated. Could I do a while loop and cycle through all the possible nodes? What else is out there for parsing XML in a cleaner fashion? Cheers! fM ___ 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 ___ 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