|
Posted by Rik Wasmus on 11/29/07 22:52
On Thu, 29 Nov 2007 23:44:43 +0100, Ciaran <cronoklee@hotmail.com> wrote=
:
> Great OK sounds promising. I have set up a test file with
> header("Content-Type: application/rss+xml"); when I visit the page my
> browser is trying to download the php file. Have I done something
> wrong?
>
> http://www.scouttalk.ie/rsstest.php
XML is not (should not) be just like tagsoup HTML: you really have to ta=
ke =
care of correct syntax. Opera says this:
Error!
XML parsing failed
XML parsing failed: syntax error (Line: 2, Character: 33)
Reparse document as HTML
Error:invalid xml-stylesheet processing instruction
Specification:http://www.w3.org/TR/REC-xml/
1: <?xml version=3D"1.0" encoding=3D"utf-8"?>
2: <?xml-stylesheet type=3D"text/css" [>]
So, end with ?>, not with >...
Use a validator in your testing: =
<http://validator.w3.org/feed/check.cgi?url=3Dhttp%3A%2F%2Fwww.scouttalk=
..ie%2Frsstest.php> =
would tell you what it can't process.
-- =
Rik Wasmus
Navigation:
[Reply to this message]
|