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
Sara Mouedder 7Sara Mouedder 7 

from record to xml file

is there any way to transform a record from the data base into an xml file ??
Leslie  KismartoniLeslie Kismartoni
Are you trying to do this in APEX or via API?

If you use the Partner API, you should be able to get the XML of the output.
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_partner_queries.htm
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_partner_examples.htm

Another, easier way, might be to get the JSON of an object, then use a tool to conver the JSON to some type of simple XML...
http://stackoverflow.com/questions/19977979/converting-json-to-xml-in-java