creating xml from database

Posted by Prady on Stack Overflow See other posts from Stack Overflow or by Prady
Published on 2011-01-04T12:52:27Z Indexed on 2011/01/04 17:53 UTC
Read the original article Hit count: 127

Filed under:
|

hi,

I am creating an xml from salesforce database, Everything works fine except when there is a & in the data which is been fetched.

<apex:page contenttype="text/xml" 
> controller="Test2ab" >  <data
> wiki-section="Timeline"> <apex:repeat
> value="{!lsttask}" var="e" > <event
> start="{!e.ActivityDate}" title=
> "{!e.Subject}"> <apex:outputText
> value="{!e.Subject}" /> </event>
> </apex:repeat> </data></apex:page>

and in the controller i am just querying

>  lsttask   =[Select OwnerId,WhoId,Status,Subject,ActivityDate from Task where Status = 'Completed' Order By ActivityDate Desc];

How can i use an escape for the value retrieved from the database
Thanks Prady

© Stack Overflow or respective owner

Related posts about Xml

Related posts about salesforce