Forum Discussion
aaronpliu
4 years agoFrequent Contributor
Hi rajs2020 ,
I just recommended you to use JsonSlurper to parse your JSON response or XmlHolder to parse XML response.
Database query return a xml-like response, right? then you can try:
(Example)
def holder = new XmlHolder(response)
def node = holder.getNodeValues( "//div/a[@title='APIs']/@href" )
you would paste your sample response here if don't mind, using XPath to retrieve it
Thanks,
/Aaron
Related Content
- 4 years ago
Recent Discussions
- 19 days ago