Parser XML de réponse dans SoapUI à l'aide de groovy

Je veux parser un fichier XML de réponse dans SoapUI. J'ai ci-dessous le script, mais de toute façon je ne suis pas capable d'analyser. Pourriez-vous quelqu'un merci de m'aider à affiner le code.

def response = context.expand( '${WS_01_Hotel_Search#Response#declare namespace soap=\'http://www.w3.org/2003/05/soap-envelope\'; //OTA_HotelAvailRS[1]/RoomStays[1]}' )
def responseParser = new XmlParser().parseText(response)

responseParser.RoomStays.RoomStay.RoomTypes.RoomType.each { RoomType ->
   log.info("${RoomType.'@RoomTypeCode'} ${RoomType.'@RoomID'}");
}

Code XML:

<RoomStays>
    <RoomStay>
       <RoomTypes>
          <RoomType RoomTypeCode="AAA" RoomID="BB" Quantity="9">
             <RoomDescription>
                <Text>Double Room</Text>
             </RoomDescription>
          </RoomType>
          <RoomType RoomTypeCode="BBB" RoomID="CC" Quantity="9">
             <RoomDescription>
                <Text>Double Room</Text>
             </RoomDescription>
          </RoomType>
          <RoomType RoomTypeCode="CCC" RoomID="DD" Quantity="9">
             <RoomDescription>
                <Text>Executive Family Room</Text>
             </RoomDescription>
          </RoomType>
          <RoomType RoomTypeCode="DDD" RoomID="EE" Quantity="9">
             <RoomDescription>
                <Text>Executive Family Room</Text>
             </RoomDescription>
          </RoomType>
       </RoomTypes>                             
    </RoomStay>
 </RoomStays>
InformationsquelleAutor user3463885 | 2014-04-01