Click here to Skip to main content
12,070,351 members (59,186 online)
Rate this:
 
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";
?>


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 20:43pm
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?
S.M. 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

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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160208.1 | Last Updated 16 Jan 2013
Copyright © CodeProject, 1999-2016
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