title: using a Bash variable in the XPath of the program xmllint
body: <p>I want to use a Bash variable within the XPath of the program xmllint.</p>
  
  <p>The following working code illustrates the overall thing I want to achieve:</p>
  
  <pre><code>    functionInformationTagContent="$(echo "${functionInformation}"\
                  | xmllint --xpath '/functionInformation/description/text()' -\
                  | xargs -i echo -n "{}")"
  </code></pre>
  
  <p>The following non working code illustrates the specific thing I want to achieve:</p>
  
  <pre><code>    functionInformationTag="${1}"
      functionInformationTagContent="$(echo "${functionInformation}"\
                  | xmllint --xpath '/functionInformation/&lt;clever code&gt;"${functionInformationTag}"&lt;clever code&gt;/text()' -\
                  | xargs -i echo -n "{}")"
  </code></pre>
  
  <p>You can see that I want to be able to use Bash variables in the XPath argument for the purposes of generalisation. Do you know how I may be able to achieve this? Could you point me in the right direction?</p>
  
  <p>Thanks a million for your assistance!</p>