title: How to list XML node attributes with XML::LibXML?
body: <p>Given the following XML snippet:</p>
  
  <pre><code>&lt;outline&gt;
    &lt;node1 attribute1="value1" attribute2="value2"&gt;
      text1
    &lt;/node1&gt;
  &lt;/outline&gt;
  </code></pre>
  
  <p>How do I get this output?</p>
  
  <pre><code>outline
  node1=text1
  node1 attribute1=value1
  node1 attribute2=value2
  </code></pre>
  
  <p>I have looked into <code>use XML::LibXML::Reader;</code>, but that module appears to only provide access to attribute <strong>values</strong> referenced by their names. And <strong>how do I get the list of attribute names in the first place?</strong></p>