title: how to read xml file in linux
body: <p>I have one xml file as below, I need "en" using some unix command.   </p>
  
  <pre><code>        &lt;void method="put"&gt;
              &lt;string&gt;LANGUAGE&lt;/string&gt;
              &lt;string&gt;en&lt;/string&gt;
          &lt;/void&gt;    
  </code></pre>
  
  <p>using below command (got from some link in google), </p>
  
  <pre><code>sed -n '/string/{s/.*&lt;string&gt;//;s/&lt;\/string.*//;p;}' Locale.xml
  </code></pre>
  
  <p>I am getting output as</p>
  
  <pre><code>LANGUAGE
  en
  </code></pre>
  
  <p>so I used </p>
  
  <pre><code>sed -n '/string/{s/.*&lt;string&gt;//;s/&lt;\/string.*//;p;}' Locale.xml | tail -1
  </code></pre>
  
  <p>But is there any option in sed by which I can get second value only?</p>