title: XQUERY to delete a node with an ID property in BaseX
body: <p>I am using BaseX to store XML data with multiple nodes in the following format:</p>
  
  <pre><code>&lt;root&gt;
    &lt;item id="65816" parent_id="45761" type="test"&gt;
      &lt;content&gt;
        &lt;name&gt;Name of my node on the tree&lt;/name&gt;
      &lt;/content&gt;
    &lt;/item&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>The code above is essentially one typical node under 'root'.
  Now, I am trying to delete a node based on the 'id' property of the 'Item' object.</p>
  
  <p>I looked at the documentation on <a href="http://docs.basex.org/wiki/XQuery_Update#delete" rel="nofollow">BaseX.org</a> but that does not explicitly tell me how to deal with nodes which have IDs linked to it. I am trying to something like this:</p>
  
  <pre><code>XQUERY delete node //root/item.id="65816"
  </code></pre>
  
  <p>Note: The above line doesn't work. That is just to give an idea of what I am trying to achieve.</p>