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
FrancoFranco 

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">
 
Franco
SørenKrabbeSørenKrabbe

Hi,

 

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

 

 

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

 

 

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