def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def response = context.expand( '${Request#Response}' )
def holderResponse = groovyUtils.getXmlHolder( response )
def listElement = []
int countElement1 = Integer.parseInt (holderResponse.getNodeValue( "count(//*[local-name()='element1' and namespace-uri()='cz:v1'])") )
for(int i = 1; i <= countElement1; i++){
listElement.add( holderResponse.getNodeValue( "//*[local-name()='element1' and namespace-uri()='cz:v1'][" + i + "]" ) )
listElement.add( holderResponse.getNodeValue( "//*[local-name()='element1' and namespace-uri()='cz:v1'][" + i + "]/@atribut" )
}
Collections.sort(listElement)