RE: [Flashcoders] xml parse question - Steve Sacks
Here's XML2AS as an AS2 static class for her pleasure. Steve, I've used a lot of XML parsers, and have never found one I've been fully satisfied with. I've seen you post this a few times before, but I couldn never get yours working right, so I thought I would try again. I like the simplicity and figure that will translate to speed if I can get it working. So, this worked fine initially, then stopped working: trace(xmlObj.config[0].test[0].attributes.foo); So I suspected maybe your parser had not finished. I even tried putting the rest of the code further down the timeline to be sure at frame 20, but no luck. How would you grab Other text from the XML? I tried it this way, as I would have expected it to work: trace(xmlObj.config[0].items[0].item[2]) Also tried: trace(xmlObj.config[0].items[0].item[2].nodeValue) Either way is how I would expect it to work, but they just trace undefined. Here is my code with comments where it breaks - Again, I even tried putting the rest of the code further down the timeline, to be sure your method had finished parsing, but it made no difference: import com.stevensacks.data.XML2AS; //imports fine var myXML = new XML(); myXML.load(myXML.xml); myXML.onLoad = xmlLoadHandler function xmlLoadHandler (success){ var xmlObj:Object = {}; XML2AS.parse(myXML.firstChild, xmlObj); trace(myXML.firstChild) //traces fine trace(XML2AS) //traces fine trace(xmlObj.config[0].test[0].attributes.foo); //undefined trace(xmlObj.config[0].items[0].item[2].nodeValue) //undefined var nodes:Array = xmlObj.config[0].items[0].item; trace(nodes) // undefined var i:Number = nodes.length; while (i--) { trace(nodes[i]); } } /* myXML.xml file: config test foo=bar/ items item![CDATA[Some text]]/item item![CDATA[More text]]/item item![CDATA[Other text]]/item /items /config your class file: class com.stevensacks.data.XML2AS { public static function parse(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.parse(k[i], r); } else if (k == 3) { a[d] = new String(n.firstChild.nodeValue); a[d].attributes = n.attributes; } } else r.attributes = n.attributes; } } */ Any ideas? Jason Merrill Bank of America Global Technology Operations Learning Leadership Development eTools Multimedia Team ___ 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] xml parse question - Steve Sacks
Hey Jason, You don't say .nodeValue - the nodeValue is just the first item in the Array. Technically, it's a String object. Here is a sample class that parse that entire xml and traces it out. In your timeline just put: import com.Test; var test:Test = new Test(); And you'll see it trace the test.xml file. /// import com.stevensacks.data.XML2AS; import mx.utils.Delegate; class com.Test { private var xml:XML; function Test() { var d:Date = new Date(); var xmlPath:String = test.xml; load(xmlPath); } private function load(xmlPath:String):Void { xml = new XML(); xml.ignoreWhite = true; xml.onLoad = Delegate.create(this, parseXML); xml.load(xmlPath); } private function parseXML(success:Boolean):Void { if (success) { var xmlObj:Object = {}; XML2AS.parse(xml.firstChild, xmlObj); trace(test.foo = + xmlObj.config[0].test[0].attributes.foo); var nodes:Array = xmlObj.config[0].items[0].item; var i:Number = nodes.length; while (i--) { trace(nodes[i]); } } else { trace(XML Failed to load); } } } ___ 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] xml parse question - Steve Sacks
Thanks, I'll try out your sample and expand on that. BTW, why did you throw in the Date object - were you going to use that to append to the XML path string as a cache buster? I see you declared it, but didn't use it again. Jason Merrill Bank of America Global Technology Operations Learning Leadership Development eTools Multimedia Team -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ Sent: Friday, March 16, 2007 1:58 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] xml parse question - Steve Sacks Hey Jason, You don't say .nodeValue - the nodeValue is just the first item in the Array. Technically, it's a String object. Here is a sample class that parse that entire xml and traces it out. In your timeline just put: import com.Test; var test:Test = new Test(); And you'll see it trace the test.xml file. // / import com.stevensacks.data.XML2AS; import mx.utils.Delegate; class com.Test { private var xml:XML; function Test() { var d:Date = new Date(); var xmlPath:String = test.xml; load(xmlPath); } private function load(xmlPath:String):Void { xml = new XML(); xml.ignoreWhite = true; xml.onLoad = Delegate.create(this, parseXML); xml.load(xmlPath); } private function parseXML(success:Boolean):Void { if (success) { var xmlObj:Object = {}; XML2AS.parse(xml.firstChild, xmlObj); trace(test.foo = + xmlObj.config[0].test[0].attributes.foo); var nodes:Array = xmlObj.config[0].items[0].item; var i:Number = nodes.length; while (i--) { trace(nodes[i]); } } else { trace(XML Failed to load); } } } ___ 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] xml parse question
Nevermind. I found this in one of my many flash books: myAttributes = this.firstChild.childNodes[0].childNodes[0].attributes; for(attributes in myAttributes){ trace(attributes+ : +myAttributes[attributes]); } On 3/14/07, Carl Welch [EMAIL PROTECTED] wrote: What if I don't know what the names are going to be? How can I check how many attributes are in a node? is there anything like XMLNode.attributes.length (I know that's wrong...) so I can loop through and find out their names? -- Carl Welch http://www.carlwelch.com [EMAIL PROTECTED] On 3/14/07, Andrew Wright [EMAIL PROTECTED] wrote: XMLNode.attributes.imageID XMLNode.attributes.img XMLNode.attributes.text etc Hi coders, I just started working on a new project that is requiring me to handle an xml format that I haven't had to deal with yet. Here is an example of what it looks like: image imageID=halLogin img=hal.png text= Font=Black,8,Regular,AlignLeft onPanel=true xPos=0.25 yPos=0.112 / I'm used to parsing xml that looks like this: something blahfoo/blah /something How do I parse xml that looks like the first example with multiple values inside of a single node? Thanks. ___ 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 -- Carl Welch http://www.carlwelch.com [EMAIL PROTECTED] 805.403.4819 ___ 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] xml parse question
What if I don't know what the names are going to be? How can I check how many attributes are in a node? is there anything like XMLNode.attributes.length (I know that's wrong...) so I can loop through and find out their names? -- Carl Welch http://www.carlwelch.com [EMAIL PROTECTED] On 3/14/07, Andrew Wright [EMAIL PROTECTED] wrote: XMLNode.attributes.imageID XMLNode.attributes.img XMLNode.attributes.text etc Hi coders, I just started working on a new project that is requiring me to handle an xml format that I haven't had to deal with yet. Here is an example of what it looks like: image imageID=halLogin img=hal.png text= Font=Black,8,Regular,AlignLeft onPanel=true xPos=0.25 yPos=0.112 / I'm used to parsing xml that looks like this: something blahfoo/blah /something How do I parse xml that looks like the first example with multiple values inside of a single node? Thanks. ___ 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] xml parse question
all the attributes are in the attributes object, so you can just do a for...in loop and grab them all. example: for(a in xObj.attributes) { obj[a] = xObj.attributes[a]; } On Mar 15, 2007, at 12:19 AM, Carl Welch wrote: What if I don't know what the names are going to be? How can I check how many attributes are in a node? is there anything like XMLNode.attributes.length (I know that's wrong...) so I can loop through and find out their names? -- Carl Welch http://www.carlwelch.com [EMAIL PROTECTED] On 3/14/07, Andrew Wright [EMAIL PROTECTED] wrote: XMLNode.attributes.imageID XMLNode.attributes.img XMLNode.attributes.text etc Hi coders, I just started working on a new project that is requiring me to handle an xml format that I haven't had to deal with yet. Here is an example of what it looks like: image imageID=halLogin img=hal.png text= Font=Black,8,Regular,AlignLeft onPanel=true xPos=0.25 yPos=0.112 / I'm used to parsing xml that looks like this: something blahfoo/blah /something How do I parse xml that looks like the first example with multiple values inside of a single node? Thanks. ___ 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] xml parse question
Here's XML2AS as an AS2 static class for her pleasure. class com.stevensacks.data.XML2AS { public static function parse(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.parse(k[i], r); } else if (k == 3) { a[d] = new String(n.firstChild.nodeValue); a[d].attributes = n.attributes; } }else r.attributes = n.attributes; } } Usage: config test foo=bar/ items item![CDATA[Some text]]/item item![CDATA[More text]]/item item![CDATA[Other text]]/item /items /config var xml:XML = someXML; var xmlObj:Object = {}; XML2AS.parse(someXML.firstChild, xmlObj); trace(xmlObj.config[0].test[0].attributes.foo); -- bar var nodes:Array = xmlObj.config[0].items[0].item; var i:Number = nodes.length; while (i--) { trace(nodes[i]); } -- Some text -- More text -- Other text ___ 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] xml parse question
The xml that you've shown consists of all attributes, that is value pairs inside a tag. Each node has a attributes property. Here is a small snippet that demonstrates accessing attributes. private function loadProblems(xFileName:String):Void { var sLessonPath = this.theLessonPath;// _root.lesson_path; var pathedFileName:String = sLessonPath + xFileName xmlFile = new XML(); xmlFile.ignoreWhite = true; xmlFile.onLoad = mx.utils.Delegate.create(this, fetchLessonFiles); xmlFile.load( pathedFileName ); return; } public function fetchLessonFiles():Void { var cFileNum:Number = 1;// counter var cFileID:String; cFileID = unescape(xmlFile[cFileNum].attributes.fileName); } -- Carl Welch http://www.carlwelch.com [EMAIL PROTECTED] On 3/14/07, Andrew Wright [EMAIL PROTECTED] wrote: XMLNode.attributes.imageID XMLNode.attributes.img XMLNode.attributes.text etc Hi coders, I just started working on a new project that is requiring me to handle an xml format that I haven't had to deal with yet. Here is an example of what it looks like: image imageID=halLogin img=hal.png text= Font=Black,8,Regular,AlignLeft onPanel=true xPos=0.25 yPos=0.112 / I'm used to parsing xml that looks like this: something blahfoo/blah /something How do I parse xml that looks like the first example with multiple values inside of a single node? Thanks. ___ 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] xml parse question
You might be aware of this, but just an FYI, if you're concerned about attributes being order specific. When you loop through the attributes with a for statement, you'll get the attributes in the reverse order. I personally loop through the attributes and push the attribute name to an array and then reverse order, when the for is done. Andrew -Original Message- From: Carl Welch [mailto:[EMAIL PROTECTED] Sent: Thursday, March 15, 2007 3:04 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] xml parse question Nevermind. I found this in one of my many flash books: myAttributes = this.firstChild.childNodes[0].childNodes[0].attributes; for(attributes in myAttributes){ trace(attributes+ : +myAttributes[attributes]); } On 3/14/07, Carl Welch [EMAIL PROTECTED] wrote: What if I don't know what the names are going to be? How can I check how many attributes are in a node? is there anything like XMLNode.attributes.length (I know that's wrong...) so I can loop through and find out their names? -- Carl Welch http://www.carlwelch.com [EMAIL PROTECTED] On 3/14/07, Andrew Wright [EMAIL PROTECTED] wrote: XMLNode.attributes.imageID XMLNode.attributes.img XMLNode.attributes.text etc Hi coders, I just started working on a new project that is requiring me to handle an xml format that I haven't had to deal with yet. Here is an example of what it looks like: image imageID=halLogin img=hal.png text= Font=Black,8,Regular,AlignLeft onPanel=true xPos=0.25 yPos=0.112 / I'm used to parsing xml that looks like this: something blahfoo/blah /something How do I parse xml that looks like the first example with multiple values inside of a single node? Thanks. ___ 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 -- Carl Welch http://www.carlwelch.com [EMAIL PROTECTED] 805.403.4819 ___ 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] xml parse question
Carl, That is how you do it. Here's another way. The following will copy the attributes of one node to another, provided they both have exactly the same attributes in the same order, regardless of what the attributes names are. function replaceNode(theNode, withNode):Boolean { for(attr in theNode.attributes) { if (typeof withNode.attributes[attr] != 'undefined') theNode.attributes[attr] = withNode.attributes[attr]; else { proxy.call(alertWin, withNode.attributes[attr] + was undefined ); return false; } } return true;}//end replaceNode Date: Wed, 14 Mar 2007 21:19:23 -0700 From: [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] xml parse question What if I don't know what the names are going to be? How can I check how many attributes are in a node? is there anything like XMLNode.attributes.length (I know that's wrong...) so I can loop through and find out their names? -- Carl Welch http://www.carlwelch.com [EMAIL PROTECTED] On 3/14/07, Andrew Wright [EMAIL PROTECTED] wrote: XMLNode.attributes.imageID XMLNode.attributes.img XMLNode.attributes.text etc Hi coders, I just started working on a new project that is requiring me to handle an xml format that I haven't had to deal with yet. Here is an example of what it looks like: image imageID=halLogin img=hal.png text= Font=Black,8,Regular,AlignLeft onPanel=true xPos=0.25 yPos=0.112 / I'm used to parsing xml that looks like this: something blahfoo/blah /something How do I parse xml that looks like the first example with multiple values inside of a single node? Thanks. ___ 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] xml parse question
use pixlib == http://osflash.org/projects/pixlib and use the Config, ConfigLoader and ConfigLoaderEvent it convert an xml file to a object here is 2 good tutorials about it http://relivethefuture.com/choronzon/2006/11/14/getting-to-know-pixlib/ http://relivethefuture.com/choronzon/2006/11/15/pixlib-part-2-more-configuration-features-and-a-hidden-gem/ --Pedro Taranto John laPlante escreveu: The xml that you've shown consists of all attributes, that is value pairs inside a tag. Each node has a attributes property. Here is a small snippet that demonstrates accessing attributes. private function loadProblems(xFileName:String):Void { var sLessonPath = this.theLessonPath;// _root.lesson_path; var pathedFileName:String = sLessonPath + xFileName xmlFile = new XML(); xmlFile.ignoreWhite = true; xmlFile.onLoad = mx.utils.Delegate.create(this, fetchLessonFiles); xmlFile.load( pathedFileName );return; } public function fetchLessonFiles():Void { var cFileNum:Number = 1;// counter var cFileID:String; cFileID = unescape(xmlFile[cFileNum].attributes.fileName); } ___ 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] xml parse question
Or you can save yourself the very slow Array.reverse() and just iterate through the array backwards, too. You might be aware of this, but just an FYI, if you're concerned about attributes being order specific. When you loop through the attributes with a for statement, you'll get the attributes in the reverse order. I personally loop through the attributes and push the attribute name to an array and then reverse order, when the for is done. ___ 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] xml parse question
I don't think that's still the case with Flash player 8 (and up). Why one would care about an Object properties order is beyond me in the first place though, but maybe I missed something in one of the thread replies (and this isn't about copying attributess to object properties). regards, Muzak - Original Message - From: Steven Sacks | BLITZ [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Thursday, March 15, 2007 11:04 PM Subject: RE: [Flashcoders] xml parse question Or you can save yourself the very slow Array.reverse() and just iterate through the array backwards, too. You might be aware of this, but just an FYI, if you're concerned about attributes being order specific. When you loop through the attributes with a for statement, you'll get the attributes in the reverse order. I personally loop through the attributes and push the attribute name to an array and then reverse order, when the for is done. ___ ___ 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] xml parse question
check the docs for XMLNode.attributes - Original Message - From: Carl Welch [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Thursday, March 15, 2007 2:11 AM Subject: [Flashcoders] xml parse question Hi coders, I just started working on a new project that is requiring me to handle an xml format that I haven't had to deal with yet. Here is an example of what it looks like: image imageID=halLogin img=hal.png text= Font=Black,8,Regular,AlignLeft onPanel=true xPos=0.25 yPos=0.112 / I'm used to parsing xml that looks like this: something blahfoo/blah /something How do I parse xml that looks like the first example with multiple values inside of a single node? Thanks. -- Carl Welch http://www.carlwelch.com [EMAIL PROTECTED] 805.403.4819 ___ 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] xml parse question
XMLNode.attributes.imageID XMLNode.attributes.img XMLNode.attributes.text etc Hi coders, I just started working on a new project that is requiring me to handle an xml format that I haven't had to deal with yet. Here is an example of what it looks like: image imageID=halLogin img=hal.png text= Font=Black,8,Regular,AlignLeft onPanel=true xPos=0.25 yPos=0.112 / I'm used to parsing xml that looks like this: something blahfoo/blah /something How do I parse xml that looks like the first example with multiple values inside of a single node? Thanks. ___ 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