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
symantecAPsymantecAP 

APEX Code to accept values from XML

I am developing a Apex code which need to accept values from the XML Tags. The value are present in the Payload of XML.

 

Example :

 <Region>USA</Region>

 <Name> John Doe </Name>

 

My code shall read the XML and get the values and create a record on a Object.

 

Thanks in Advance

Novo_ArtisNovo_Artis

Refer to the apex code documentation, there is ample infomation on this subject.

incuGuSincuGuS

http://developer.force.com/releases/release/Spring10/XML+DOM+Parsing

 

User dom.Document instead of XMLDOM and XMLStreamReader class, its much faster, uses up less heapsize, and it has better methods.

 

Hope this helps,

Gaston.

symantecAPsymantecAP

Thank you srinivas and Gaston