title: How to select all attributes under an element using xmlstarlet?
body: <p>How to use <code>xmlstarlet</code> to get the <code>hrefs</code> from the following <code>div</code>?</p>
  
  <pre><code>&lt;div xmlns="http://www.w3.org/1999/xhtml" class="my_list"&gt;
  &lt;ul&gt;
  &lt;li&gt;&lt;a href="http://mylink1.html" title="title1"&gt;this is title 1&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href="http://mylink2.html" title="title2"&gt;this is title 2&lt;/a&gt;&lt;/li&gt;
   ...
   &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I tried the following <code>xmlstarlet sel -t -m "//*[@class='my_list']" -v "." myfile.xml</code>on my mac, but without success.</p>