You need to sign in to do that
Don't have an account?
symantecAP
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
Refer to the apex code documentation, there is ample infomation on this subject.
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_XmlStream_reader.htm
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.
Thank you srinivas and Gaston