title: Selecting a parent node in XPath?
body: <p>Here is a snippet of XML (there is much more) I'm working with, I'm trying to run an XPath expression to find the <code>ASIN</code> node in the <code>Item</code> section while confirming that the <code>Author</code> isn't <code>JK Rowling</code>.</p>
  
  <p>I tried this: <code>/ItemSearchResponse/Items/Item/ItemAttributes[Author = "J.K. Rowling"]/parent::</code></p>
  
  <p>But it returns no matches, could you anyone guide me through accessing parent attributes?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;    
  &lt;ItemSearchResponse&gt; 
    &lt;Items&gt;
      &lt;Request&gt;
        &lt;IsValid&gt;True&lt;/IsValid&gt;
        &lt;ItemSearchRequest&gt;
          &lt;Condition&gt;New&lt;/Condition&gt;
          &lt;DeliveryMethod&gt;Ship&lt;/DeliveryMethod&gt;
          &lt;Keywords&gt;Rowling Fiction English&lt;/Keywords&gt;
          &lt;MerchantId&gt;Amazon&lt;/MerchantId&gt;
          &lt;ResponseGroup&gt;Small&lt;/ResponseGroup&gt;
          &lt;SearchIndex&gt;Books&lt;/SearchIndex&gt;
        &lt;/ItemSearchRequest&gt;
      &lt;/Request&gt;
      &lt;TotalResults&gt;171&lt;/TotalResults&gt;
      &lt;TotalPages&gt;18&lt;/TotalPages&gt;
      &lt;Item&gt;
        &lt;ASIN&gt;0747557462&lt;/ASIN&gt;
        &lt;ItemAttributes&gt;
          &lt;Author&gt;Sarah Brown&lt;/Author&gt;
          &lt;Author&gt;Gil McNeil&lt;/Author&gt;
          &lt;Creator Role="Foreword"&gt;J.K. Rowling&lt;/Creator&gt;
          &lt;Manufacturer&gt;Bloomsbury UK&lt;/Manufacturer&gt;
          &lt;ProductGroup&gt;Book&lt;/ProductGroup&gt;
          &lt;Title&gt;Magic&lt;/Title&gt;
        &lt;/ItemAttributes&gt;
      &lt;/Item&gt;
    &lt;/Items&gt;
  &lt;/ItemSearchResponse&gt;
  </code></pre>