Lists Home |
Date Index |
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
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
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"
(contents of root tag left out)
The full file resides at http://www.yelah.net/backend.php
Can anyone figure out what's wrong?