title: Select top node with xpath
body: <p>Here's an exapmle of xml I'm dealing with:</p>
  
  <pre><code>&lt;div&gt;
      &lt;div&gt;
          &lt;table id="table1"&gt;
              &lt;div&gt;
                  &lt;table id="table2"/&gt;
              &lt;/div&gt;
          &lt;/table&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I want to create an XPath expression, which would select table1 and would not select table2. The ids are there for example and are not present in the original document. The structure of those documents may be much more convoluted as well. I want to select the top table for processing.</p>
  
  <p>Is it possible to do this with XPath alone?</p>