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
john.krjohn.kr 

hi !how to convert xml file to apex code it's possible

hi

 

   hi !how to convert xml file to apex code it's possible............

 

thanks......................

MandyKoolMandyKool

Hi,

 

As per my understanding you want to parse the XML by using Apex. 

You can check the online documentation for Apex - 

 

http://www.salesforce.com/us/developer/docs/apexcode/index.htm 

 

Under content you can go to "References" -> "Apex Classes" -> XML Classes.

 

Hope you will find what you are hunting for :)

 

 

Trace GillespieTrace Gillespie
I used a two step process. 
1. Convert XML to JSON : https://www.freeformatter.com/xml-to-json-converter.html#ad-output
2. Convert JSON to APEX : http://json2apex.herokuapp.com/

You may have to replace array notations with string types from your XML conversion.