XML failing validation

Posted on 2011-04-24
Last Modified: 2012-05-11
Hey there,

I'm making an RSS feed and it's failing validation.  The error i'm getting is 'Undefined root element: channel '.  The way I understand XML is that there is always a root element.  Why am I getting this error if that's the case?  

I also read up on namespaces but it seems like overkill...I shouldn't have to use them right?

Here's what my XML file looks like :

<?xml version="1.0" encoding="utf-8"?>
  <title>Newly Added Content</title>
  <description>Newly Added Portfolio Content</description>
    <title>Glen and Heidi Wedding Video</title>
    <description><![CDATA[This is a short wedding intro I made for my sisters wedding.  I used After Effects to create comps and did the final edits in Adobe Premiere.  Photoshop(most graphics), Flash(closing credits sunset) and Illustrator(vines and flowers) were also used for asset creation.]]></description>
    <title>Omega Homes Promotional Video</title>
    <description><![CDATA[A promotional video I created for Omega Homes.  I used Adobe Premiere to arrange photos, scrolling text and the Protos watermark.  I also used Adobe Flash for the opening credits.]]></description>
    <title>Random XML scrolling content</title>
    <description><![CDATA[A demo project demonstrating random scrolling content using XML data.  A fictitious soccer team was the focus of the data.  The same item being displayed is never repeated in the animation.]]></description>

Open in new window

Help, please!
Question by:duder78
    LVL 60

    Accepted Solution

    RSS 2.0 has no namespaces, so you don't need it.
    Stating it is overkill is not correct :-)

    You need to wrap the channel in a rss tag

    <rss version="2.0">
      <title>Newly Added Content</title>

    Author Closing Comment

    That did the trick, thank you.
    LVL 60

    Expert Comment

    by:Geert Bormans

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
    Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    26 Experts available now in Live!

    Get 1:1 Help Now