The attachement should help you. Teddy
On 12/12/06, Chad Gray <[EMAIL PROTECTED]> wrote: > > I am kind of new to handling XML in CF. > > Here is my basic XML data > > <preferences> > <elementView> > <JID view="yes" /> > <SKU view="yes" /> > <ElementDescription view="yes" /> > <ElementType view="yes" /> > <TypeOfShot view="yes" /> > <SimpleORAdvanced view="yes" /> > <Props view="yes" /> > <OutlineType view="yes" /> > <notes view="yes" /> > <careyNotes view="yes" /> > <Round view="yes" /> > <ElementStatus view="yes" /> > <ElementStatusDate view="yes" /> > </elementView> > </preferences> > > I want to loop over the items in elementView and display the view > attribute. > > Is there a good way of looping over this data and outputting it? > > Can I somehow get the names of the items, JID, SKU, etc... then use that > to dynamically make > > #session.prefs.preferences.elementView.JID.XMLAttributes.view# > #session.prefs.preferences.elementView.SKU.XMLAttributes.view# > > Etc... > > I am also new to using the MS SQL datatype "XML". Any thing I should know > about before I go trying to insert my above XML into the database? > > Thanks! > Chad > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:263759 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

