xmlObject.validate( xmlOptions );
for( Object o : list )
{
if( o instanceof XmlError )
result.add( new AssertionError( ( XmlError )o ) );
else
result.add( new AssertionError( o.toString() ) );
}
asserted = true;
}
catch( XmlException e )
{
SoapUI.logError( e );
}
}
else
{
asserted = true;
}
}
}
if( !asserted && result.isEmpty() )
{
result.add( new AssertionError( "Missing matching representation for request with contentType ["
+ messageExchange.getResponseContentType() + "]" ) );
}
return result.toArray( new AssertionError[result.size()] );
}