title: print values from an xml output
body: <p>I am working on a script, which returns output in xml format and wanted to print just the value of a particular attribute.</p>
  
  <p>As an example, here is the output of the script :</p>
  
  <pre><code>~#] ./test.sh resource list --platform=centos
  
  &lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
  &lt;ResourcesResponse&gt;
  &lt;Status&gt;Success&lt;/Status&gt;
  &lt;Resource id="11087" name="centos" 
  </code></pre>
  
  <p>Now, I wanted to print only the Resource id which is 11087. When I used awk along with NR, it returns as below :</p>
  
  <pre><code>~#] ./test.sh resource list --platform=centos | awk 'NR==4{print $2}'
  
  id="11087"
  </code></pre>
  
  <p>Could you please help know how to print only the value, i.e 11087</p>