Forum Discussion
M_McDonald
16 years agoSuper Contributor
Is this any help?
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder("GetUserTypes#ResponseAsXml")
def nodeCount = holder.getDomNodes("//flex.messaging.io.amf.ASObject/map").length
log.info nodeCount
for (def nodeIndex = 1; nodeIndex <= nodeCount; nodeIndex++) {
def node = holder.getDomNodes("//flex.messaging.io.amf.ASObject["+nodeIndex+"]/map/*")
node.each {
log.info "map node " + nodeIndex + " - " + it.QName.toString() + ":" + it.firstChild.nodeValue
}
}