If you see name as a childNode, you might do this <cfset find_business = structNew()> <cfset find.business.attributes = arrayNew(1)> <cfset find.business.childs = arrayNew(1)>
And then each array entry gets a new struct :) With the key as structkey and value as strucktvalue. Micha Schopman Software Engineer Modern Media, Databankweg 12 M, 3821 AL Amersfoort Tel 033-4535377, Fax 033-4535388 KvK Amersfoort 39081679, Rabo 39.48.05.380 ------------------------------------------------------------------------ ------------------------------------------------------------------------ ----- Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren de interactie met uw doelgroep. Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer informatie zie www.modernmedia.nl ------------------------------------------------------------------------ ------------------------------------------------------------------------ ----- -----Original Message----- From: Doug James [mailto:[EMAIL PROTECTED] Sent: donderdag 10 februari 2005 14:55 To: CF-Talk Subject: xml to struct help Please help, my forehead is very red and painful from banging against the wall over this one. Given this XML snippet: <find_business generic="2.0" maxRows="10"> <name>ABC Co.</name> </find_business> This struct accurately represents <find_business> with the "generic" and "maxRows" attributes. find_business = structNew(); find_business.generic = "2.0"; find_business.maxRows = "10"; What I can't figure out is how to get <name> into the structure. If I do find_business.name = "ABC Co."; that is making the name an attribute but I need it as an element. Any suggestions? Doug James Hollings Cancer Center ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194046 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

