Get attribute value to variable
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023
12:07 AM
03-08-2023
12:07 AM
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2023
02:08 AM
03-08-2023
02:08 AM
I propably was able to fix it by myself by changing from XmlParser() to XmlSlurper()
