title: Get xml attributes and values using ruby
body: <p>I am using nokogiri library in ruby to parse a webpage. I am getting the XML result as: </p>
  
  <pre><code>#&lt;Nokogiri::XML::Element:0x1399140 name="p" children=[#&lt;Nokogiri::XML::Text:0x1398264 "\n"&gt;, 
  #&lt;Nokogiri::XML::Element:0x1395d50 name="i" attributes=[#&lt;Nokogiri::XML::Attr:0x1395cb4 name="class" value="icon-pctgrm p-01_g"&gt;,
  #&lt;Nokogiri::XML::Attr:0x1395ca8 name="title" value="new"&gt;]&gt;,
  #&lt;Nokogiri::XML::Text:0x1394e20 "\n"&gt;]&gt; 
  </code></pre>
  
  <p>From this result I need to get the final result as <code>class:icon-pctgrm p-01_g, title:new</code></p>