Last active
January 4, 2016 20:39
-
-
Save msrivastav13/8675492 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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