this worked for me:

<cfsavecontent variable="Stock"><?xml version="1.0" encoding="ISO-8859-1" ?>
<shop>
<shopname><cfoutput>#xmlformat(params.ShopName)#</cfoutput></shopname>
<stockcount><cfoutput>#Stock.recordcount#</cfoutput></stockcount>
<stock>
<cfloop startrow="1" endrow="#stock.recordcount#" query="stock">
<item>
<category><cfoutput>#xmlformat(Stock.listing)#</cfoutput></category>
<stockcode><cfoutput>#xmlformat(stock.stockcode)#</cfoutput></stockcode>
<description><cfoutput>#xmlformat(stock.stock_desc)#</cfoutput>
</description>
<price><cfoutput>#xmlformat(stock.price)#</cfoutput></price>
</item>
</cfloop>
</stock>
</shop>
</cfsavecontent>
<cffile action="write" output="#stock#"
file="#params.webroot#\stock\stock.xml" addnewline="yes">

-----Original Message-----
From: Bud [mailto:[EMAIL PROTECTED]
Sent: 14 January 2006 00:04
To: CF-Talk
Subject: Building XML


Hi everyone. Happy new (almost) year.

I'm curious what you experts think is the best way to create XML.
Just taking dummy XML and populating it?





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229575
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

Reply via email to