function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

How can I create an XML page?

Maybe this isn't a "renderAs question" but, it seems like a possible solution.  Does anyone have any other suggestions?
From what I understand, the only option for renderAs is currently PDF.  As in:
<apex:page standardController="Account" renderAs="pdf">
What if I wanted to render the page as XML?  Does anyone have advice on how I could use visualforce to render an XML page? (My hope is to render the page so that it can be read as a feed, rss.)
As in:
<apex:page standardController="Account" renderAs="xml">



You should do something like this, if you want to create a dedicated XML page.



<apex:page contentType="text/xml"  >



Hey, soren.krabbe. Just like that! Keep it simple. It did help me.