i have the following code that after getting info from a form (date fields and
a text area with a text editor) then writes to db which then writes to and xml
file
when im outputting the xml file i get this error (or similar ones that suggest
a problem with proper xml output> the description field can have html formating
even if i put enclose the description field with cdata tags i still get error
Illegal character at end of document, <.
Illegal character at end of document, <.
heres the relevant code
<CFXML variable="eventsXML">
<events startDate="2004-11-01" endDate="2020-12-31">
<cfoutput query="qevents">
<event title="#qevents.title#" description="#qevents.description#"
startDate="#qevents.startDate#" endDate="#qevents.endDate#" />
</cfoutput>
</events>
</CFXML>
<cffile
action="write"
file="#HOMEPAGE#xml/CalXml.xml"
output="#ToString(eventsXML)#">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184206
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