title: Parsing XML using unix terminal
body: <p>Sometimes I need to quickly extract some arbitrary data from XML files to put into a CSV format. What's your best practices for doing this in the Unix terminal? I would love some code examples, so for instance how can I get the following problem solved?</p>
  <p>Example XML input:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;root&gt;
      &lt;myel name=&quot;Foo&quot; /&gt;
      &lt;myel name=&quot;Bar&quot; /&gt;
  &lt;/root&gt;
  </code></pre>
  <p>My desired CSV output:</p>
  <pre><code>Foo,
  Bar,
  </code></pre>