i'm trying to read in an XML file to do some manipulation with it - 
 
Using CFFile it works fine:
 
<cffile action="read" file="#request.pathtoXML#\#request.XMLfilename#"
variable="application.blogXML" >
 
but if i want to avoid a CFFILE call I could use CFSAVECONTENT eg;
 
 <cfsavecontent variable="application.blogXML">
     <cfinclude template="blog.XML">
 </cfsavecontent>
 
my CFC starts with:
    myblog   = xmlParse(application.blogXML);
    blogtitle  = myblog.blog.blogtitle.xmlText;
    blogdescription = myblog.blog.blogdescription.xmlText;
    ...
 
 
the CFFILE method works fine but using the SAVECONTENT method returns:
XML declaration may only begin entities.
 
any ideas what this means?
 
thanks
 
john.
 

* [EMAIL PROTECTED] * +44 (0)1372 367147 *  <http://www.era.co.uk/>
http://www.era.co.uk/

 


*************************************************************************
Copyright ERA Technology Ltd. 2002. (www.era.co.uk). All rights reserved. 
The information supplied in this email should be treated in confidence.
No liability whatsoever is accepted for any loss or damage 
suffered as a result of accessing this message or any attachments.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to