R__Wiertz
18 years agoOccasional Contributor
GroovyScript: Getting node value out XML
Hello,
Can somebody tell me how i can get a node value out of XML.
I want to do that with a groovy script because i have to compaire the values.
My xml message is:
Bericht voldoet niet aan AZR-bedrijfsregel 3
3
1
250
3
I want to getall the values between the node :
I use the code below, but that didn't work.
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
log.info( groovyUtils.projectPath )
//create holder for last response an log requistID
def holder = groovyUtils.getXmlHolder( "EI-Bericht#response" )
def strlItems = holder.getNodeValues( "//ns1:Bedrijfsregels")
log.info( strlItems["Omschrijving"] )
What do i wrong?????
Can somebody tell me how i can get a node value out of XML.
I want to do that with a groovy script because i have to compaire the values.
My xml message is:
9003
I want to getall the values between the node :
I use the code below, but that didn't work.
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
log.info( groovyUtils.projectPath )
//create holder for last response an log requistID
def holder = groovyUtils.getXmlHolder( "EI-Bericht#response" )
def strlItems = holder.getNodeValues( "//ns1:Bedrijfsregels")
log.info( strlItems["Omschrijving"] )
What do i wrong?????