Forum Discussion
nmrao
8 years agoCommunity Hero
groovyguy, the above solution only works if there is no CDATA in the xml. Some response xml has an xml wrapped under CDATA and it may not work in such situations.
For example:
https://github.com/nmrao/soapUIGroovyScripts/blob/master/groovy/CdataInsideXml.groovy
https://github.com/nmrao/soapUIGroovyScripts/blob/master/groovy/CdataXpathExists.groovy
https://github.com/nmrao/soapUIGroovyScripts/blob/master/groovy/XmlInsideCdata.groovy
For example:
https://github.com/nmrao/soapUIGroovyScripts/blob/master/groovy/CdataInsideXml.groovy
https://github.com/nmrao/soapUIGroovyScripts/blob/master/groovy/CdataXpathExists.groovy
https://github.com/nmrao/soapUIGroovyScripts/blob/master/groovy/XmlInsideCdata.groovy
DouglasY
8 years agoOccasional Contributor
Looks like the CDATA example scripts are no longer available.
- nmrao8 years agoCommunity HeroThose are refactored to be easily able to locate into single directory
https://github.com/nmrao/soapUIGroovyScripts/tree/master/groovy/xml/cdata- groovyguy8 years agoCommunity Hero
I should start compiling some of my sanitized examples up on github eventually.