Ask a Question

Get attribute value to variable

trans-am
Occasional Contributor

Get attribute value to variable

In groovy script I have following 

 

log.info(blabla) //prints out

INFO:XMLRESPONSE[attributes={}; value=[000XXXAAACCC]]

and when I try 

log.info(blabla.value) //prints out empty

INFO:[]

 

How can I get just 000XXXAAACCC added to variable?

1 REPLY 1
trans-am
Occasional Contributor

I propably was able to fix it by myself by changing from XmlParser() to XmlSlurper()

cancel
Showing results for 
Search instead for 
Did you mean: