Reputation: 69
I want to show XML file on my page, I have set the header header('Content-Type: application/xml')
also tried for header(application/rss+xml)
,
but my URL can not show the page in XML format but in View Page Source it created the XML file
URL- http://submitsitelink.com/rss.php?p=d
Can you please help me ?
Thanks
Upvotes: 2
Views: 3334
Reputation: 7946
It sounds like you want to style the output of your XML - one method of doing this is via XSL technologies. You can also add CSS stylesheets to XML documents by adding something akin to the following near the top of your XML document.
<?xml-stylesheet href="common.css"?>
As far as I know you cannot do this with HTTP headers, only by modifying the XML document itself.
Upvotes: 1
Reputation: 146350
Google Chrome can neither read RSS nor beautify XML natively. You have to find and install an extension:
Upvotes: 1