> I am creating an xml string to be used by XMLHTTP via javascript.
> 
> the page that creates the xml string I am using 
> <cfoutput><?xml 
> version="1.0"?><root><elem></elem><elem2></elem2>......so 
> on</root></cfoutput>
> 
> Being on one straight line it is very hard to read.
> 
> But if I use <cfsavecontent var="test">
> <?xml version="1.0"?>
> <root>
>     <elem></elem>
>     <elem2></elem2>
>     ......so on
> </root
> </cfsavecontent>  XMLHTTP has an error.  How can I use the 
> savecontent method but output the xml like the first example?

If you're using CFMX, you might want to use CFXML instead of CFSAVECONTENT.
But honestly, does it really matter if it's hard to read? You can just save
it with a .xml extension, then open it in any browser and the browser will
make a nice readable tree for you.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:201353
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