Forum Discussion

trysoapUI's avatar
trysoapUI
Not applicable
16 years ago

CDATA removed by submitListener.afterSubmit but the outline displays empty

Need help in removing CDATA from response and use the outline result for assertion.

I followed the steps in the blog to use event handlers for removing CDATA and display the response as regular XML
http://www.eviware.com/blogs/oleblog/?p=458


I created the submitListener.submit event handler and had the following code
if( submit.response == null )
   return

def content = submit.response.responseContent
content = content.replaceAll( "<", "<" )
content = content.replaceAll( ">", ">" )
//content = content.replaceAll( "<\\?xml version=\"1.0\" encoding=\"ISO-8859-1\"\\?", "" )
content = content.replaceAll( "
No RepliesBe the first to reply