title: How to extract attribute name and value pair from xml using Nokogiri?
body: <p>Example:</p>
  
  <pre><code>&lt;fruit name="mango"/&gt;
  </code></pre>
  
  <p>I want to get output as:</p>
  
  <pre><code>name="mango"
  </code></pre>