Ugh, many thanks for the reply, but I don't have control over the xml feed that I was hoping to display. :-/ I had hoped flex would be flexible enough to accomodate this easily.
--- In [email protected], Sherif Abdou <[EMAIL PROTECTED]> wrote: > > you would at least need to change the xml for these to work i think > so > > <data1>Joe Doe</data1> > <data2>Anywhere USA</data2> > <data3>555-555- 5555</data3> > > <mx:DataGrid dataProvider="{myXML}"> > <mx:columns> > <mx:DataGridColumn dataField="{myXML.contact.data}" headerText="{myXML.structure.data}"/> > </mx:columns> > </mx:DataGrid> > > > ----- Original Message ---- > From: atlas1j <[EMAIL PROTECTED]> > To: [email protected] > Sent: Tuesday, January 29, 2008 10:12:48 AM > Subject: [flexcoders] xml data in a datagrid > > This is probably simple for those that aren't flex newbies but my > flex books haven't arrived yet from Amazon and I am getting confused > by reading and searching on the web. What I have are xml document > that I don't control that describe their own structure. See the > simplified sample below: > > <xml> > <adml version="0"> > > <structure> > <header>Name< /header> > <header>Address< /header> > <header>Phone< /header> > </structure> > > <contact> > <data>Joe Doe</data> > <data>Anywhere USA</data> > <data>555-555- 5555</data> > </contact> > > <contact> > <data>Joe Doe</data> > <data>Anywhere USA</data> > <data>555-555- 5555</data> > </contact> > > I want to make the <structure> elements the data grid column headers > and have each of the <data> items rendered in the correct column. > Can anyone provide a pointer as to how to proceed? Thanks! > > > > > > ______________________________________________________________________ ______________ > Looking for last minute shopping deals? > Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping >

