title: Grep in XML file
body: <p>I have to find some patters from a XML file, but i am unable to do it.</p>
  
  <pre><code>&lt;field&gt;
  &lt;uniqueid&gt;account
  &lt;/uniqueod&gt;
  &lt;tableid&gt;afs&lt;/tableid&gt;
  &lt;/field&gt;
  &lt;field&gt;
  &lt;uniqueid&gt;address&lt;/uniqueod&gt;
  &lt;tableid&gt;afs&lt;/tableid&gt;
  &lt;/field&gt;
  </code></pre>
  
  <p>what i have to do is to search the entries between these two fields and redirect them to a file.txt.and output should be such that </p>
  
  <pre><code>uniqueid  tableid
  uniqueid  tableid
  </code></pre>
  
  <p>i.e. for each uniqueid tableid should be printed along with it.
  The entries can be different or same.
  Guys help me out...</p>