banjali
banjali

Reputation: 69

HTTP Headers Information to show XML file

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

Answers (2)

Benjie
Benjie

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

&#193;lvaro Gonz&#225;lez
&#193;lvaro Gonz&#225;lez

Reputation: 146350

Google Chrome can neither read RSS nor beautify XML natively. You have to find and install an extension:

Upvotes: 1

Related Questions