+ Start a Discussion
Venkat  163Venkat 163 

how to convert XML file to string for apex class in salesforce?

Hi ,
I am saving XML File in attachment(under custom object record), I have to fetch XML file from attachment and convert to String for apex class.

Please help me to achive.

Thanks,
Venkat
AnudeepAnudeep (Salesforce Developers) 
Hi Venkat, 

Posting here some existing solutions for reference

How to parse XML String in Salesforce Apex Class?

How to parse XML string in Salesforce using Apex?

Let me know if this helps, if it does, please mark this answer as best so that others facing the same issue will find this information useful. Thank you