def xmlString = """<soapenv:Envelope xmlns:soapenv="http://s...content-available-to-author-only...p.org/soap/envelope/">
<soapenv:Body>
<list:getCategoryListResponse xmlns:alpha="http://w...content-available-to-author-only...l.org/OTA/2003/05/alpha" xmlns:list="http://x...content-available-to-author-only...x.com/Interfaces/CategoryList">
<alpha:OTA_CruiseCategoryAvailRS MaxResponses="72" MoreDataEchoToken="0" MoreIndicator="false" SequenceNmbr="0" Version="1.0">
<alpha:Success/>
<alpha:Warnings>
<alpha:Warning Type="3"/>
</alpha:Warnings>
<alpha:SailingInfo>
<alpha:SelectedSailing ListOfSailingDescriptionCode="6" Duration="P7N">
<alpha:CruiseLine/>
<alpha:Region RegionCode="PBC"/>
</alpha:SelectedSailing>
<alpha:InclusivePackageOption CruisePackageCode="ZEPB0742"/>
</alpha:SailingInfo>
<alpha:FareOption>
<alpha:CategoryOptions>
<alpha:CategoryOption CategoryLocation="Deluxe" PricedCategoryCode="PT">
<alpha:PriceInfos>
<alpha:PriceInfo Amount="1909.00" BreakdownType="0201C" NCCFAmount="0.00" NonRefundableType="1" PromotionDescription="STD 2" FareCode="C6111184"/>
<alpha:PriceInfo Amount="0" BreakdownType="0201A" FareCode="C6111184"/>
<alpha:PriceInfo BreakdownType="01 C" FareCode="C6111184"/>
<alpha:PriceInfo BreakdownType="01 " FareCode="C6111184"/>
<alpha:PriceInfo Amount="1909.00" BreakdownType="0202C" NCCFAmount="0.00" NonRefundableType="1" PromotionDescription="STD 2" FareCode="C6111184"/>
<alpha:PriceInfo Amount="0" BreakdownType="0202A" FareCode="C6111184"/>
<alpha:PriceInfo BreakdownType="02 C" FareCode="C6111184"/>
<alpha:PriceInfo BreakdownType="02 " FareCode="C6111184"/>
</alpha:PriceInfos>
</alpha:CategoryOption>
<alpha:CategoryOption CategoryLocation="Deluxe" PricedCategoryCode="LS">
<alpha:PriceInfos>
<alpha:PriceInfo Amount="1709.00" BreakdownType="0201C" NCCFAmount="0.00" NonRefundableType="1" PromotionDescription="STD 2" FareCode="C6111184"/>
<alpha:PriceInfo Amount="0" BreakdownType="0201A" FareCode="C6111184"/>
<alpha:PriceInfo BreakdownType="01 A" FareCode="C6111184"/>
<alpha:PriceInfo BreakdownType="01 " FareCode="C6111184"/>
<alpha:PriceInfo Amount="1709.00" BreakdownType="0202C" NCCFAmount="0.00" NonRefundableType="1" PromotionDescription="STD 2" FareCode="C6111184"/>
<alpha:PriceInfo Amount="0" BreakdownType="0202A" FareCode="C6111184"/>
<alpha:PriceInfo BreakdownType="02 A" FareCode="C6111184"/>
<alpha:PriceInfo BreakdownType="02 " FareCode="C6111184"/>
</alpha:PriceInfos>
</alpha:CategoryOption>
<alpha:CategoryOption CategoryLocation="Deluxe" PricedCategoryCode="JT">
<alpha:PriceInfos>
<alpha:PriceInfo Amount="1509.00" BreakdownType="0201C" NCCFAmount="0.00" NonRefundableType="1" PromotionDescription="STD 2" FareCode="C6111184"/>
<alpha:PriceInfo Amount="0" BreakdownType="0201A" FareCode="C6111184"/>
<alpha:PriceInfo BreakdownType="01 A" FareCode="C6111184"/>
<alpha:PriceInfo BreakdownType="01 " FareCode="C6111184"/>
<alpha:PriceInfo Amount="1509.00" BreakdownType="0202C" NCCFAmount="0.00" NonRefundableType="1" PromotionDescription="STD 2" FareCode="C6111184"/>
<alpha:PriceInfo Amount="0" BreakdownType="0202A" FareCode="C6111184"/>
<alpha:PriceInfo BreakdownType="02 A" FareCode="C6111184"/>
<alpha:PriceInfo BreakdownType="02 " FareCode="C6111184"/>
</alpha:PriceInfos>
</alpha:CategoryOption>
<alpha:CategoryOption CategoryLocation="Deluxe" PricedCategoryCode="JS">
<alpha:PriceInfos>
<alpha:PriceInfo Amount="1309.00" BreakdownType="0201C" NCCFAmount="0.00" NonRefundableType="1" PromotionDescription="STD 2" FareCode="C6111184"/>
<alpha:PriceInfo Amount="0" BreakdownType="0201A" FareCode="C6111184"/>
<alpha:PriceInfo BreakdownType="01 A" FareCode="C6111184"/>
<alpha:PriceInfo BreakdownType="01 " FareCode="C6111184"/>
<alpha:PriceInfo Amount="1309.00" BreakdownType="0202C" NCCFAmount="0.00" NonRefundableType="1" PromotionDescription="STD 2" FareCode="C6111184"/>
<alpha:PriceInfo Amount="0" BreakdownType="0202A" FareCode="C6111184"/>
<alpha:PriceInfo BreakdownType="02 A" FareCode="C6111184"/>
<alpha:PriceInfo BreakdownType="02 " FareCode="C6111184"/>
</alpha:PriceInfos>
</alpha:CategoryOption>
</alpha:CategoryOptions>
</alpha:FareOption>
<alpha:Taxes>
<alpha:Tax Amount="200.00"/>
<alpha:Tax Amount="200.00"/>
<alpha:Tax Amount="200.00"/>
<alpha:Tax Amount="200.00"/>
</alpha:Taxes>
<alpha:Fee TaxInclusive="false">
<alpha:Taxes>
<alpha:Tax Amount="0.00"/>
<alpha:Tax Amount="0.00"/>
<alpha:Tax Amount="0.00"/>
<alpha:Tax Amount="0.00"/>
</alpha:Taxes>
</alpha:Fee>
</alpha:OTA_CruiseCategoryAvailRS>
</list:getCategoryListResponse>
</soapenv:Body>
</soapenv:Envelope>"""
def categoryCode = new XmlSlurper().parseText(xmlString).'**'.find{
it.PriceInfos.PriceInfo.find {
it.'@BreakdownType'.text() == "02 A"
}
}.@PricedCategoryCode?.text()
println categoryCode instanceof String
println categoryCode