title: soapui how to get the list of nodes by using local-name in xpath expression?
body: <p>I am using soapui for automation testing. I am trying to write a xpath expression to do the property transfer with following xml</p>
  
  <pre><code>&lt;snapshots query="after=2014-04-16 12:30:00-0700" mask="op" xmlns="http://ws.example.com/roma/201907" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
      &lt;AsOf&gt;2014-04-16T19:20:44-07:00&lt;/AsOf&gt;
      &lt;offers&gt;
          &lt;offer entityId="6500588"/&gt;
          &lt;offer entityId="6500589"/&gt;
          &lt;offer entityId="6500590"/&gt;
          &lt;offer entityId="6557335"&gt;
              &lt;rubber&gt;KJM&lt;/rubber&gt;
              &lt;code&gt;B44733&lt;/code&gt;
              &lt;offerCode&gt;PA&lt;/offerCode&gt;
              &lt;status name="Completed"&gt;C&lt;/status&gt;
              &lt;startDate basis="GMT-4"&gt;2013-04-01&lt;/startDate&gt;
              &lt;endDate basis="GMT-4"&gt;2014-04-15&lt;/endDate&gt;
              &lt;template&gt;
                  &lt;sourceKey-Ref entityId="36KTV" code="KPA513C36KTV" uri="/snapshot/sourcekey/36KTV"/&gt;
                  &lt;pTemplateCode&gt;PPAKXC&lt;/pTemplateCode&gt;
                  &lt;panelCode&gt;HPA5LTM&lt;/panelCode&gt;
                  &lt;itemCode&gt;PA1467&lt;/itemCode&gt;
              &lt;/template&gt;
              &lt;venue code="28"&gt;
                  &lt;supervenue&gt;5&lt;/supervenue&gt;
              &lt;/venue&gt;
              &lt;currencyDetail currency="USD"&gt;
                  &lt;unitPrice&gt;29.95&lt;/unitPrice&gt;
                  &lt;numberPayments&gt;1&lt;/numberPayments&gt;
              &lt;/currencyDetail&gt;
              &lt;hData&gt;
                  &lt;legacyScriptCode&gt;300&lt;/legacyScriptCode&gt;
                  &lt;hpKeycode&gt;189161&lt;/hpKeycode&gt;
                  &lt;hpProductNumber&gt;014399&lt;/hpProductNumber&gt;
                  &lt;hpMpgCode&gt;300&lt;/hpMpgCode&gt;
              &lt;/hData&gt;
          &lt;/offer&gt;
          &lt;offer entityId="6557336"&gt;
              &lt;rubber&gt;KJM&lt;/rubber&gt;
              &lt;code&gt;B44734&lt;/code&gt;
              &lt;offerCode&gt;VY&lt;/offerCode&gt;
              &lt;status name="Completed"&gt;C&lt;/status&gt;
              &lt;startDate basis="GMT-4"&gt;2013-04-01&lt;/startDate&gt;
              &lt;endDate basis="GMT-4"&gt;2014-04-15&lt;/endDate&gt;
              &lt;template&gt;
                  &lt;sourceKey-Ref entityId="36KTV" code="KPA513C36KTV" uri="/snapshot/sourcekey/36KTV"/&gt;
                  &lt;pTemplateCode&gt;PPAKXC&lt;/pTemplateCode&gt;
                  &lt;panelCode&gt;HPA5LTM&lt;/panelCode&gt;
                  &lt;offerCode&gt;OVYC8UM9&lt;/offerCode&gt;
                  &lt;itemCode&gt;VY4023&lt;/itemCode&gt;
              &lt;/template&gt;
              &lt;venue code="28"&gt;
                  &lt;supervenue&gt;5&lt;/supervenue&gt;
              &lt;/venue&gt;
              &lt;currencyDetail currency="USD"&gt;
                  &lt;unitPrice&gt;0.00&lt;/unitPrice&gt;
                  &lt;numberPayments&gt;1&lt;/numberPayments&gt;
              &lt;/currencyDetail&gt;
              &lt;hData&gt;
                  &lt;legacyScriptCode&gt;947&lt;/legacyScriptCode&gt;
                  &lt;hpKeycode&gt;189162&lt;/hpKeycode&gt;
                  &lt;hpProductNumber&gt;602185&lt;/hpProductNumber&gt;
                  &lt;hpMpgCode&gt;947&lt;/hpMpgCode&gt;
              &lt;/hData&gt;
          &lt;/offer&gt;
          &lt;offer entityId="6557337"&gt;
              &lt;rubber&gt;KJM&lt;/rubber&gt;
              &lt;code&gt;B44736&lt;/code&gt;
              &lt;offerCode&gt;VY&lt;/offerCode&gt;
              &lt;status name="Completed"&gt;C&lt;/status&gt;
              &lt;startDate basis="GMT-4"&gt;2013-04-01&lt;/startDate&gt;
              &lt;endDate basis="GMT-4"&gt;2014-04-15&lt;/endDate&gt;
              &lt;template&gt;
                  &lt;sourceKey-Ref entityId="36KTV" code="KPA513C36KTV" uri="/snapshot/sourcekey/36KTV"/&gt;
                  &lt;pTemplateCode&gt;PPAKXC&lt;/pTemplateCode&gt;
                  &lt;panelCode&gt;HPA5LTM&lt;/panelCode&gt;
                  &lt;offerCode&gt;OVYC8UMA&lt;/offerCode&gt;
                  &lt;itemCode&gt;VY4012&lt;/itemCode&gt;
              &lt;/template&gt;
              &lt;venue code="28"&gt;
                  &lt;supervenue&gt;5&lt;/supervenue&gt;
              &lt;/venue&gt;
              &lt;currencyDetail currency="USD"&gt;
                  &lt;unitPrice&gt;0.00&lt;/unitPrice&gt;
                  &lt;numberPayments&gt;1&lt;/numberPayments&gt;
                  &lt;firstPaymentAmount&gt;0.00&lt;/firstPaymentAmount&gt;
                  &lt;firstShippingAmount&gt;5.98&lt;/firstShippingAmount&gt;
              &lt;/currencyDetail&gt;
              &lt;hData&gt;
                  &lt;legacyScriptCode&gt;947&lt;/legacyScriptCode&gt;
                  &lt;hpKeycode&gt;189163&lt;/hpKeycode&gt;
                  &lt;hpProductNumber&gt;602094&lt;/hpProductNumber&gt;
                  &lt;hpMpgCode&gt;947&lt;/hpMpgCode&gt;
              &lt;/hData&gt;
          &lt;/offer&gt;
      &lt;/offers&gt;
  &lt;/snapshots&gt;
  </code></pre>
  
  <p>I would like to have all <code>hpKeycode</code> using <code>local-name()</code> in the XPath expression. I tried         </p>
  
  <pre><code>//*[local-name()='hpKeycode']
  </code></pre>
  
  <p>but this gives me only the first node which is 189161. This</p>
  
  <pre><code>/*[local-name()='hpKeycode'][2]
  </code></pre>
  
  <p>also does not work. Any help would be greatly appreciated.</p>