Forum Discussion
JHunt
7 years agoCommunity Hero
Oh yeah, sorry, to test my answer I had tried it against the request XML you posted, since you that was the only place you had given an example of a XML containing another XML in CDATA.
Its looking for rootIssueQuoteRequest, returning null, and then trying to parse null.
You just need to replace this:
String CDATA = new XmlSlurper().parseText(xml) .Body.rootIssueQuoteRequest.text()
with the appropriate path to the rootCreateQuoteReponse.
Otherwise, I think there is some notation like this which is similar to XPath's //:
String CDATA = new XmlSlurper().parseText(xml) .'**'.find {it.name == 'rootIssueQuoteRequest'}.text()
Related Content
- 6 years ago
- 9 years ago
Recent Discussions
- 15 years ago