Click here to Skip to main content
15,885,833 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I wrote that codes in rss.php

XML
<?php
header('Content-Type: text/xml');
echo "<?xml version = \"1.0\" encoding = \"utf-8\" ?>\n";
?>

<rss>
    <channel>
        <title> My Simple Blog</title>
        <link> http://localhost:1234/simple_blog/ </link>
        <desctiption> This blog is awesome. </desctiption>
        <language> en-us </language>
    </channel>
</rss>



Result:
SQL
This XML file does not appear to have any style information associated with it. The document tree is shown below.


How fix it?
Posted
Comments
lewax00 10-Jan-13 1:54am    
That's perfectly normal when opening an XML file in your browser. What are you expecting it to do?
Zamshed Farhan 14-Jan-13 21:51pm    
I am agreeing with lewax00, actually what output you have preferred for your provided code? Would you please clear us.

1 solution

Nothing to do ... Ir working without any issues if you are seeing only this error.

And in which browser you are getting this error ?

Chrome doesn't have an RSS viewer built in. Check out this chrome extension to view RSS, https://chrome.google.com/webstore/detail/nlbjncdgjeocebhnmkbbbdekmmmcbfjd
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900