Skip to content

Instantly share code, notes, and snippets.

@msrivastav13
Last active January 4, 2016 20:39
Show Gist options
  • Save msrivastav13/8675492 to your computer and use it in GitHub Desktop.
Save msrivastav13/8675492 to your computer and use it in GitHub Desktop.
Dom.Document doc = new Dom.Document();
doc.load(xmlstringdata);//Here xmlstring data is from the above XML shown above
//Retrieve the root element for this document.
Dom.XMLNode env= doc.getRootElement();
//system.debug('****'+env);
dom.XmlNode Body=env.getChildElement('Body','Schema URL');
//system.debug('&&&&'+Body);
Dom.XMLNode GetActivationInformationResponse=Body.getChildElement('GetActivationInformationResponse','Schema URL');
//system.debug('NEW'+GetActivationInformationResponse);
Dom.XMLNode GetActivationInformationResult=GetActivationInformationResponse.getChildElement('GetActivationInformationResult','Schema URL');
//system.debug('TRIII'+GetActivationInformationResult);
String name = GetActivationInformationResult.getChildElement('ATMFee', 'Schema URL url').getText();
system.debug('*****'+name);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment