title: XPath in SoapUI Groovy Script not working as expected
body: <p>I am attempting to extract values out of an XML response in SoapUI, using XmlHolder in a groovy script.  But the xpath is not working the way I expect it to.</p>
  
  <p>This is the response that I'm querying:</p>
  
  <pre><code>&lt;OTA_HotelRatePlanNotifRQ MessageContentCode="8" TimeStamp="2016-03-02T21:08:10.912Z" Version="6" CorrelationID="aut0mat3-th15-g00d-n1c3-ch01c37udsvb" xmlns="http://www.opentravel.org/OTA/2003/05"&gt;
  &lt;POS&gt;
      &lt;Source&gt;
          &lt;RequestorID Type="10" ID="ACME"/&gt;
          &lt;BookingChannel Type="4"&gt;
              &lt;CompanyName Code="ACME"/&gt;
          &lt;/BookingChannel&gt;
      &lt;/Source&gt;
  &lt;/POS&gt;
  &lt;UniqueID Type="10" ID_Context="HI123" ID="HI123"/&gt;
  &lt;RatePlans ChainCode="EC" HotelCode="HI123"&gt;
      &lt;RatePlan RatePlanNotifType="Delta" RatePlanNotifScopeType="RateOnly" CurrencyCode="USD" RatePlanCode="COOL"&gt;
          &lt;Rates&gt;
              &lt;Rate InvCode="QQQ" InvTypeCode="QQQ" Mon="false" Tue="false" Weds="false" Thur="false" Fri="true" Sat="true" Sun="true" Start="2016-03-03" End="2016-04-02"&gt;
                  &lt;BaseByGuestAmts&gt;
                      &lt;BaseByGuestAmt NumberOfGuests="1" AgeQualifyingCode="10" AmountBeforeTax="1099.0"/&gt;
                      &lt;BaseByGuestAmt NumberOfGuests="2" AgeQualifyingCode="10" AmountBeforeTax="1199.0"/&gt;
                  &lt;/BaseByGuestAmts&gt;
              &lt;/Rate&gt;
              &lt;Rate InvCode="QQQ" InvTypeCode="QQQ" Mon="true" Tue="true" Weds="true" Thur="true" Fri="false" Sat="false" Sun="false" Start="2016-03-03" End="2016-04-02"&gt;
                  &lt;BaseByGuestAmts&gt;
                      &lt;BaseByGuestAmt NumberOfGuests="1" AgeQualifyingCode="10" AmountBeforeTax="899.0"/&gt;
                      &lt;BaseByGuestAmt NumberOfGuests="2" AgeQualifyingCode="10" AmountBeforeTax="999.0"/&gt;
                  &lt;/BaseByGuestAmts&gt;
              &lt;/Rate&gt;
          &lt;/Rates&gt;
      &lt;/RatePlan&gt;
  &lt;/RatePlans&gt;
  </code></pre>
  
  <p></p>
  
  <p>This is the code in my Groovy Script:</p>
  
  <pre><code>import com.eviware.soapui.support.XmlHolder;
  
  XmlHolder holder = new XmlHolder(context.getProperty("response"))
  
  // These work as expected
  log.info(holder.getNodeValue("//@MessageContentCode"));  // 8
  log.info(holder.getNodeValue("//@Version"));  // 6
  log.info(holder.getNodeValue("//@Type"));  // 10
  log.info(holder.getNodeValue("//@ID"));  // ACME
  log.info(holder.getNodeValue("//@Code"));  // ACME
  
  // These do NOT work as expected.  Instead they log null.
  log.info(holder.getNodeValue("/OTA_HotelRatePlanNotifRQ/@Version")); // null
  log.info(holder.getNodeValue("/OTA_HotelRatePlanNotifRQ/POS/Source/RequestorID/@Type"));  // null
  //etc
  </code></pre>
  
  <p>Am I doing something wrong here?</p>