title: xmllint - unable to read special characters
body: <p>On the bash shell prompt i want to run xmllint to get data from a xml file.  Lets look at a file in which i have no issues:</p>
  
  <p>behold the fruits.xml file:</p>
  
  <pre><code>      &lt;?xml version='1.0' encoding='utf-8' standalone='yes' ?&gt;
  &lt;map&gt;
    &lt;string name="mykey"&gt;grapes&lt;/string&gt;
  &lt;/map&gt;
  </code></pre>
  
  <p>and this is me using xmllint to get the value "grapes" from fruits.xml</p>
  
  <pre><code>xmllint --xpath "string(/map/string[@name = 'mykey'])" fruits.xml
  </code></pre>
  
  <p>and i get the output of the following:</p>
  
  <pre><code>$ grapes
  </code></pre>
  
  <p>great i got the value, but this is not the actual key i need to use. "mykey" should be "c1:fruits_id-%1$s"</p>
  
  <p>now when i change the "mykey" value in the fruits.xml file to another value i am unable to get any return value from xmllint:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8' standalone='yes' ?&gt;
  &lt;map&gt;
    &lt;string name="c1:fruits_id-%1$s"&gt;grapes&lt;/string&gt;
  &lt;/map&gt;
  
  
  xmllint --xpath "string(/map/string[@name = 'c1:fruits_id-%1$s'])" fruits.xml
  </code></pre>
  
  <p>the above command returns nothing.  All im doing is changing the key name and now it wont work. can someone help ?</p>