Forum Discussion

karthe's avatar
karthe
Occasional Contributor
12 years ago

[Resolved] How to trim the node value

Hi Folks,

I am using Soap UI Free version. Below Response is from one of the services we are supporting. In the below Response, ID alone needs to be fetched ie. 23000234 must fetched and remainin should be omitted.

I am able to get only the node value through groovy script i.e value of returnInfo tag

Can someone please provide me the script to do this.


Response
---------
<s0:idCreationResponse xmlns:s0="urn:xxxxxxxx.xxxxx.xxxxx">
<status>
<returnCode>0</returnCode>
<returnInfo>ID#: XXX23000234 CREATION SUCCESS</returnInfo>
</status>
</idCreationResponse>