Forum Discussion

Bradley1234's avatar
16 years ago

How to search a response within a tag?

Ive been using soapUI for about a couple months now, am still new to this. 

A question, I send a request and get a response.  within the response are custom tags, I want to search a sub tag contents for a string value, and return the contents of a corresponding link tag at the same sub level.

using a generalized example,


  < .... response framing ...>
     
         
           
                  <br />                  <number><br />                  <url><br />              </url><br />              <datapacket><br />                  <title><br />                  <number><br />                  <url><br />              </url><br />              <datapacket><br />                  <title><br />                  <number><br />                  <url><br />              </url><br /><br />Question: For each DataPacket, if the tag "Title" contains string "abc" then return the tag contents of "URL".  There are a random number of possible datapacket tags in the response.  How to do this??<br /><br />Thanks!</number>