You need to sign in to do that
Don't have an account?
Template engine to generate XML/JSON based on changing data
Is there any Template Engine like FreeMaker(in Java) which can be used to generate XML or JSON based on Changing data? I am looking for this feature so that I dont have to hardcode the XML structure in my Apex code, instead I will be creating a template and the engine will be able to take the required dataMap as an input along with the template (Static Resource) and will create the XML dynamically. This will enable me to create XMLs without any further coding even if I have any change in the XML template/structure.
You can look at this article as a starting point - https://developer.salesforce.com/page/Getting_Started_with_Apex_JSON.