title: Select XML node by attribute value
body: <pre><code>&lt;location&gt;
    &lt;hotspot name="name1" X="444" Y="518" /&gt;
    &lt;hotspot name="name2" X="542" Y="452" /&gt; 
    &lt;hotspot name="name3" X="356" Y="15" /&gt;
  &lt;/location&gt;
  </code></pre>
  
  <p>I have a point variable and I need to select the node with its coordinates, then change an attribute value. I want to do something similar to:</p>
  
  <pre class="lang-ml prettyprint-override"><code>let node = xmld.SelectSingleNode("/location/hotspot[@X='542' @Y='452']")
  node.Attributes.[0].Value &lt;- "new_name2"
  </code></pre>
  
  <p>but taking attributes value by a variable (variable_name.X / variable_name.Y).</p>