1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Why my feed is invalid?

Discussion in 'HTML & Website Design' started by melege, Mar 12, 2009.

  1. #1
    I created an RSS feed manually. but when I use it in some Feed sites or social bookmarking sites, it says: "Couldn't parse RSS file!"
    Anyone can check what's wrong with it, please?

    The feed URL is:

    Solved! View solution.
    melege, Mar 12, 2009 IP
  2. #2
    I got this error message " XML Parsing Error: not well-formed
    Line Number 2, Column 1:<xml version="1.0" encoding="UTF-8">

    maybe have a look at line 2 eh?

    Good luck
    physicist, Mar 12, 2009 IP
  3. deathshadow

    deathshadow Acclaimed Member

    Likes Received:
    Best Answers:
    Trophy Points:
    Title, link, and description should be inside <channel>, not before it. they are not valid root elements in a XML RSS feed. Also a LOT of XML parsers choke on non UTF encodings, so as convenient as Windows-1256 might be for you when working in Arabic, get that thing to UTF-8.

    <?xml version="1.0" encoding="utf-8" ?>
    <rss version="2.0">
    		<title>تويستو Twesto</title>
    			Twesto web services. تويستو لخدمات الويب.
    			<title>نجوم اف ام</title>
    			<description>الإستماع إلى البث المباشر لإذاعة نجوم اف ام على الإنترنت.</description>
    			<title>Nogoom FM</title>
    			<description>Listen to Nogoom FM live stream on the internet.</description>
    Code (markup):
    Though a nice side effect is the ability to run multiple channels per feed.

    .. and be bloody well certain <?xml is the FIRST line of code, some parsers will choke if you even have a CR/LF before it. that < MUST be the first character for best compatibility. SOME parsers will also screw up if you leave out the space between " and ?> -- which is really stupid, but XML was designed to make the parser as simple as possible and the people writing XML work harder.
    deathshadow, Jun 28, 2017 IP