Try: <cfsavecontent variable="myXMLDoc"><cfinclude template="xml.xml"></cfsavecontent>
the extra white space might have been causing the problem. Adrian -----Original Message----- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: 05 May 2006 18:32 To: CF-Talk Subject: saving an XML file into a variable with cfinclude I'm taking a stab at writing a form creator/handler via XML. I want to make this really simple to use and setup so I don't want to use cffile to read the file as some people might not have access to that or know how to use it if they did. I've found that I can do this: <cfsavecontent variable="myXMLDoc"> <cfinclude template="xml.xml"> </cfsavecontent> And that will return the XML file as a string. But I need to get that into an XML object. I've tried XMLParse but that returns an error. I've also tried toString and a few other functions to no avail. Does anyone have any input on this? <!----------------//------ andy matthews ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239746 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