I do not know of an example, but creating XMl with AS is pretty easy. You have two choices, either building a string representation, the feeding that to XML() function, or build the xml directly using the e4x API. I do it both ways.
Start with the static parts of the xml, then in the dynamic parts, filter the ArrayCollection for the applicable items, loop over those, and build a node for each one. Tracy Spratt, Lariat Services, development services available _____ From: [email protected] [mailto:[email protected]] On Behalf Of Wally Kolcz Sent: Sunday, January 03, 2010 7:26 PM To: [email protected] Subject: [SPAM] [flexcoders] Creating XML Document from Data Can someone give me a hint (Class to look into) or paste a URL to an example of how to create an XML structure, using a returned ArrayCollection of dynamic values, to use as the XML Datasource for a <mx:MenuBar>. I create a backend system for my client to use to create views ('pages'), but need to take the pageTitles and pageID, base on categories ('galleries' and 'personal'), and create a drop down menu system using <mx:MenuBar> Something like: <menuitem label="Home"/> <menuitem label="Galleries"> //Loop all the galleries by the returned data <menuitem label="pageTitle" /> </menuitem> <menuitem label="About the Artist"> //Loop all the personal pages by the returned data <menuitem label="pageTitle" /> </menuitem> <menuitem label="Contact"/>

