CFXML - What am I doing wrong

2007-04-06 Thread Joel Watson
Can somebody tell me what's wrong with this code? I have a podcast that uses exactly the same format (with different tags, obviously) and works fine. With this one, however, I am simply trying to create a basic feed and I continue to get this error: An error occured while Parsing an XML

Re: CFXML - What am I doing wrong

2007-04-06 Thread Barney Boisvert
Looks like you've got a #chr(28)# somewhere in your content. That's not a legal character in an XML doc, so you have to escape it somehow. cheers, barneyb On 4/6/07, Joel Watson [EMAIL PROTECTED] wrote: Can somebody tell me what's wrong with this code? I have a podcast that uses exactly the

Re: CFXML - What am I doing wrong

2007-04-06 Thread Robertson-Ravo, Neil (RX)
Apr 06 19:23:34 2007 Subject: Re: CFXML - What am I doing wrong Looks like you've got a #chr(28)# somewhere in your content. That's not a legal character in an XML doc, so you have to escape it somehow. cheers, barneyb On 4/6/07, Joel Watson [EMAIL PROTECTED] wrote: Can somebody tell me what's

Re: CFXML - What am I doing wrong

2007-04-06 Thread Rob Wilkerson
Either use XMLFormat() or wrap dynamic data in a CDATA block: description![CDATA[#Post.PostContent#]]/description I prefer the latter simply because it's native XML and doesn't perform any conversion of my data. Either should work perfectly well, though. On 4/6/07, Joel Watson [EMAIL

Re: CFXML - What am I doing wrong

2007-04-06 Thread Joel Watson
I tried wrapping all the dynamic sections in the CDATA as you showed. Now, I am getting this error: An invalid XML character (Unicode: 0x1c) was found in the CDATA section. Any more ideas? Thanks! Either use XMLFormat() or wrap dynamic data in a CDATA block:

Re: CFXML - What am I doing wrong

2007-04-06 Thread Josh Nathanson
An invalid XML character (Unicode: 0x1c) was found in the CDATA section. Here is a regex I use to clean my xml of any funky characters: cfset newxml = rereplace(oldxml, [\x00-\x1f], , All) Then you should probably still CDATA newxml to escape the regular bad xml characters. -- Josh

Re: CFXML - What am I doing wrong

2007-04-06 Thread Joel Watson
I'm really new to xml--- Where exactly are you doing this cleaning? An invalid XML character (Unicode: 0x1c) was found in the CDATA section. Here is a regex I use to clean my xml of any funky characters: cfset newxml = rereplace(oldxml, [\x00-\x1f], , All) Then you should probably still

Re: CFXML - What am I doing wrong

2007-04-06 Thread Josh Nathanson
06, 2007 12:06 PM Subject: Re: CFXML - What am I doing wrong An invalid XML character (Unicode: 0x1c) was found in the CDATA section. Here is a regex I use to clean my xml of any funky characters: cfset newxml = rereplace(oldxml, [\x00-\x1f], , All) Then you should probably still CDATA newxml

Re: CFXML - What am I doing wrong

2007-04-06 Thread Robertson-Ravo, Neil (RX)
expressed by Reed Exhibitions. Visit our website at http://www.reedexpo.com -Original Message- From: Josh Nathanson To: CF-Talk Sent: Fri Apr 06 20:26:52 2007 Subject: Re: CFXML - What am I doing wrong I'm really new to xml--- Where exactly are you doing this cleaning? Sorry, I should have

Re: CFXML - What am I doing wrong

2007-04-06 Thread Joel Watson
-Talk cf-talk@houseoffusion.com Sent: Friday, April 06, 2007 12:06 PM Subject: Re: CFXML - What am I doing wrong ~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade see new features. http

RE: CFXML - What am I doing wrong

2007-04-06 Thread Brad Wood
Subject: Re: CFXML - What am I doing wrong Okay, I wasn't exactly able to get this to work. What I finally did was go into my database and scrub my files of all terrible characters (not a good, long-term solution). So, perhaps I need to figure out how to get the data into the database clean