Last active
June 26, 2018 21:44
-
-
Save nancystodd/d23e1369961397419a3fd808f3ac2000 to your computer and use it in GitHub Desktop.
Get nodes from XMLDocument - SN example
This file contains 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
var response = s.post(); | |
var xmldoc = new XMLDocument(response, true); | |
var nodelist = xmldoc.getNodes("//Action/*"); | |
for(var i=0;i<nodelist.getLength();i++){ | |
gs.print(nodelist.item(i).getNodeName() +' : '+nodelist.item(i).getLastChild().getNodeValue()+'\n'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment