title: Extracting values from xml file into field delimiter format using unix script/command
body: <p>Here is sample file and we need to convert values into delimiter formatted file :-</p>
  
  <p>test.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
   &lt;testjar&gt;
  
   &lt;testable&gt;
   &lt;trigger&gt;Trigger1&lt;/trigger&gt;
   &lt;message&gt;2012-06-14T00:03.54&lt;/message&gt;
   &lt;sales-info&gt;
   &lt;san-a&gt;no&lt;/san-a&gt;
   &lt;san-b&gt;no&lt;/san-b&gt;
   &lt;san-c&gt;no&lt;/san-c&gt;
   &lt;/sales-info&gt;
   &lt;/testable&gt;
  
  
    &lt;testable&gt;
    &lt;trigger&gt;Trigger2&lt;/trigger&gt;
    &lt;message&gt;2012-06-15T00:03.54&lt;/message&gt;
    &lt;sales-info&gt;
    &lt;san-a&gt;yes&lt;/san-a&gt;
    &lt;san-b&gt;yes&lt;/san-b&gt;
    &lt;san-c&gt;no&lt;/san-c&gt;
    &lt;/sales-info&gt;
   &lt;/testable&gt;
  
   &lt;/testjar&gt;
  </code></pre>
  
  <p>Each record should start on new line. Sample result set should be something like this 
  sample.txt</p>
  
  <pre><code>Trigger1|2012-06-14T00:03.54|no|no|no  
  Trigger2|2012-06-15T00:03.54|yes|yes|no
  </code></pre>
  
  <p>Note :- xmlstarlet is not installed on my server, is it possible to perform this without xmlstarlet?</p>