1 Reply Latest reply on Mar 1, 2008 5:02 AM by Newsgroup_User

    RSS file not validating using CFML and MySQL to build it

    brianthedrummer
      Is this due to whitespace above the <xml> doctype? I Have the firefox developer toolbar and am used to vlidating my xhtml 1.0 pages. i tried validating this xml file and it fails, saying no doctype found. but there is one! It is not on line one but there is nothing but whitespace before it (due to the cfml code preceding it). any ideas if this is why my Mac's mail.app RSS reader won't parse it?

      thanks,
      Brian
        • 1. Re: RSS file not validating using CFML and MySQL to build it
          Level 7
          Yes the <?xml version="1.0" encoding="UTF-8"?> needs to be on the top line
          with no whitespace above it.

          --
          Ken Ford
          Adobe Community Expert - Dreamweaver
          Fordwebs, LLC
          http://www.fordwebs.com


          "brianthedrummer" <webforumsuser@macromedia.com> wrote in message
          news:fqb2ln$897$1@forums.macromedia.com...
          > Is this due to whitespace above the <xml> doctype? I Have the firefox
          > developer
          > toolbar and am used to vlidating my xhtml 1.0 pages. i tried validating
          > this
          > xml file and it fails, saying no doctype found. but there is one! It is
          > not on
          > line one but there is nothing but whitespace before it (due to the cfml
          > code
          > preceding it). any ideas if this is why my Mac's mail.app RSS reader won't
          > parse it?
          >
          > thanks,
          > Brian
          >
          > <?xml version="1.0" encoding="UTF-8"?>
          >
          > <rss version="2.0">
          >
          > <channel>
          >
          > <title>Events @ French Library Alliance Fran??aise of
          > Boston</title>
          >
          > <link> http://www.frenchlib.org</link>
          >
          > <description>Upcoming events happening at the French Library
          > Alliance
          > Fran??aise of Boston</description>
          >
          > <language>en-us</language>
          >
          > <copyright>Copyright 2008 French Library Alliance Fran??aise of
          > Boston</copyright>
          >
          > <docs> http://bfc8.starwebmanagement.com/meta/</docs>
          >
          > <lastBuildDate>Sat, 01 Mar 2008 00:59:36 ET</lastBuildDate>
          >
          >
          >
          >
          >
          > <item>
          >
          > <title>Apr 11, 2008 at 11:00 PM:
          >
          >
          >
          >
          > Test conversation</title>
          >
          > <description>
          >
          >
          >
          >
          > test this<br />
          >
          > Location: boston ma<br />
          >
          > See description for pricing details.
          >
          > <br />
          >
          > 11:00 PM&#151;12:00 PM
          >
          > </description>
          > <category>Conversation</category> <link> http://www.bostonfrenchcenter.org/
          > events/event.cfm?id=659&#38;eventcategory=13</link>
          >
          > <pubDate>Wed, 23 Jan 2008 01:30:58 EST</pubDate>
          >
          > </item>
          >
          >
          >
          >
          >
          > <item>
          >
          > <title>May 11, 2008 at 11:00 PM:
          >
          >
          >
          >
          > Test conversation 2</title>
          >
          > <description>
          >
          >
          >
          >
          > test this<br />
          >
          > Location: boston ma<br />
          >
          > See description for pricing details.
          >
          > <br />
          >
          > 11:00 PM&#151;12:00 PM
          >
          > </description>
          > <category>Conversation</category> <link> http://www.bostonfrenchcenter.org/
          > events/event.cfm?id=660&#38;eventcategory=13</link>
          >
          > <pubDate>Wed, 23 Jan 2008 01:32:30 EST</pubDate>
          >
          > </item>
          >
          >
          >
          > </channel>
          >
          > </rss>
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          >
          > <?xml version="1.0" encoding="UTF-8"?>
          >
          > <rss version="2.0">
          >
          > <channel>
          >
          > <title>Events @ French Library Alliance Fran??aise of
          > Boston</title>
          >
          > <link> http://www.frenchlib.org</link>
          >
          > <description>Upcoming events happening at the French Library
          > Alliance
          > Fran??aise of Boston</description>
          >
          > <language>en-us</language>
          >
          > <copyright>Copyright 2008 French Library Alliance Fran??aise of
          > Boston</copyright>
          >
          > <docs> http://bfc8.starwebmanagement.com/meta/</docs>
          >
          > <lastBuildDate>Sat, 01 Mar 2008 00:59:36 ET</lastBuildDate>
          >
          >
          >
          >
          >
          > <item>
          >
          > <title>Apr 11, 2008 at 11:00 PM:
          >
          >
          >
          >
          > Test conversation</title>
          >
          > <description>
          >
          >
          >
          >
          > test this<br />
          >
          > Location: boston ma<br />
          >
          > See description for pricing details.
          >
          > <br />
          >
          > 11:00 PM&#151;12:00 PM
          >
          > </description>
          > <category>Conversation</category> <link> http://www.bostonfrenchcenter.org/
          > events/event.cfm?id=659&#38;eventcategory=13</link>
          >
          > <pubDate>Wed, 23 Jan 2008 01:30:58 EST</pubDate>
          >
          > </item>
          >
          >
          >
          >
          >
          > <item>
          >
          > <title>May 11, 2008 at 11:00 PM:
          >
          >
          >
          >
          > Test conversation 2</title>
          >
          > <description>
          >
          >
          >
          >
          > test this<br />
          >
          > Location: boston ma<br />
          >
          > See description for pricing details.
          >
          > <br />
          >
          > 11:00 PM&#151;12:00 PM
          >
          > </description>
          > <category>Conversation</category> <link> http://www.bostonfrenchcenter.org/
          > events/event.cfm?id=660&#38;eventcategory=13</link>
          >
          > <pubDate>Wed, 23 Jan 2008 01:32:30 EST</pubDate>
          >
          > </item>
          >
          >
          >
          > </channel>
          >
          > </rss>
          >