Monthly Archives: April 2014

XML Parsing using DOM Parser in salesforce

Apex Class public class XMLParsing{     Public void parseXML(String xmlfile)   {        DOM.Document xmlDOC = new DOM.Document();        xmlDOC.load(xmlfile);        DOM.XMLNode rootElement = xmlDOC.getRootElement();        System.Debug(‘$$$$ Root Element’+rootelement);                for(DOM.XMLNode xmlNodeObj:xmlDOC.getRootElement().getChildElements()){                System.Debug(‘$$$ … Continue reading

Posted in Apex | Leave a comment