title: Get value of xsi:type with xpath
body: <p>I am trying to determine the correct XPath expression to return the value of the <code>xsi:type</code> attribute on the <code>Body</code> element.  I have tried what seems like everything without luck.  Based on what I read this would seem close but it is obviously not quire correct. Any quick guidance so that I can put finally to rest?</p>
  
  <pre><code>//v20:Body/@xsi:type
  </code></pre>
  
  <p>I want it to return <code>v20:SmsMessageV1RequestBody</code></p>
  
  <pre><code>&lt;v20:MessageV1Request&gt;
      &lt;v20:Header&gt;
          &lt;v20:Source&gt;
              &lt;v20:Name&gt;SOURCE_APP&lt;/v20:Name&gt;
              &lt;v20:ReferenceId&gt;1326236916621&lt;/v20:ReferenceId&gt;
              &lt;v20:Principal&gt;2001&lt;/v20:Principal&gt;
          &lt;/v20:Source&gt;
      &lt;/v20:Header&gt;
      &lt;v20:Body xsi:type="v20:SmsMessageV1RequestBody"&gt;
          &lt;v20:ToAddress&gt;5555551212&lt;/v20:ToAddress&gt;
          &lt;v20:FromAddress&gt;11111&lt;/v20:FromAddress&gt;
          &lt;v20:Message&gt;TEST&lt;/v20:Message&gt;
      &lt;/v20:Body&gt;
  &lt;/v20:MessageV1Request&gt;
  </code></pre>