[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Problem parsing a RSS file with XML parser

  • To: xml-dev@l...
  • Subject: Problem parsing a RSS file with XML parser
  • From: Pelle Nilsson <pellenilsson@f...>
  • Date: Thu, 9 Sep 2004 00:35:51 +0200
  • User-agent: Mutt/1.5.6+20040818i

rss doctype
Hi!

I am trying to validate a RSS 0.9 document (not created by myself)
with PHP's DOM parser. The parser can't parse the file,
because it mistakes the doctype-tag for the root tag. Thus it gives a
warning about junk after the root tag, and the DOM only contains a
doctype node.

The validator at http://www.stg.brown.edu/service/xmlvalid/ says that
it "can't resolve Public ID", so it seems the problem lies in the
doctype-tag. The strange thing is that the doctype-tag i totally
identical to what is stated in the RSS 0.91 spec at
http://my.netscape.com/publish/formats/rss-spec-0.91.html

The relevant part of the RSS file looks like this:



<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN"
           "http://my.netscape.com/publish/formats/rss-0.91.dtd">

<rss version="0.91">

(contents of root tag left out)

</rss>



The full file resides at http://www.yelah.net/backend.php

Can anyone figure out what's wrong?

/Pelle

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.