Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: XML PHP rss
I wrote that codes in rss.php
 
<?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:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
 
How fix it?
Posted 9-Jan-13 19:43pm
Comments
lewax00 at 10-Jan-13 1:54am
   
That's perfectly normal when opening an XML file in your browser. What are you expecting it to do?
S.M. Zamshed Farhan at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 556
1 OriginalGriff 316
2 Maciej Los 170
3 DamithSL 145
4 PIEBALDconsult 140
0 Sergey Alexandrovich Kryukov 11,384
1 OriginalGriff 5,783
2 Maciej Los 5,684
3 CPallini 3,879
4 BillWoodruff 3,584


Advertise | Privacy | Mobile
Web02 | 2.8.141030.1 | Last Updated 16 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100