Forum Discussion

tom_13's avatar
tom_13
Contributor
16 years ago

elements of getDomNodes

Hi all,
I have a difficult map in response of soap request, and I need convert it by groovy to the hashMap.

I tried to it:

def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context )
def holder = groovyUtils.getXmlHolder (responceStep.name +"#Response" )
def vMaps = holder.getDomNodes("//map[key/value = \'BALANCE_MAP\']/value/map")

for (k in vMaps)
{

resMap[k["//key/value"]] = k["//value/value"]
}

and I got an error:
    groovy.lang.MissingPropertyException: No such property: //value/value for class: org.apache.xmlbeans.impl.store.Xobj$ElementXobj


How I can get elements of DomNodes ?

p.s. I use soapUI 2.5.1 free
No RepliesBe the first to reply