Re: writing to xml woes
Hi Dave. Ignore the error message, it is not reporting the problem correctly, it simply means that you have an illegal character somewhere in the XML. Looking at your code I would say it is the qevents.startDate and .endDate are they problem contain slashes which would not be allowed. Try replacing them with - signs like you have the events tag. Andrew. On Sat, 13 Nov 2004 02:58:23 -0500, dave [EMAIL PROTECTED] wrote: 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, #x3c;. 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:184207 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
Re: writing to xml woes
i did get it fixed actually the startdate and endate ones were working ok and the other fields i put on xmlFormat, which i wasnt aware of when i wrote and added the expandPath to the write file and then had to actually set up writing permissions on the actual xml file thanks -- Original Message -- From: Andrew Dixon [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Sat, 13 Nov 2004 09:16:38 + Hi Dave. Ignore the error message, it is not reporting the problem correctly, it simply means that you have an illegal character somewhere in the XML. Looking at your code I would say it is the qevents.startDate and .endDate are they problem contain slashes which would not be allowed. Try replacing them with - signs like you have the events tag. Andrew. ~| 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:184208 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=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
writing to xml woes
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, #x3c;. 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