You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var test = "<locations><location><name>Dallas</name><id>11111</id></location><location><name>Frisco</name><id>22222</id></location><location><name>Rockwall</name><id>33333</id></location></locations>";
var xmlDoc = new XMLDocument2();
xmlDoc.parseXML(test);
//var node = xmlDoc.getNode('//locations');
var node = xmlDoc.getDocumentElement();
var loc = node.getChildNodeIterator();
gs.print(node);
while (loc.hasNext()) {
var n = loc.next();
var rec = new XMLDocument2();
rec.parseXML(n);
var location = rec.getNode('//name').getTextContent();