title: How to get nokogiri attribute value?
body: <p>My xml contains multiple statements like</p>
  
  <pre><code>&lt;House name="bla"&gt;&lt;Room id="bla" name="black" &gt;&lt;blah id="blue" name="brown"&gt;&lt;/blah&gt;&lt;/Room&gt;&lt;/House&gt;
  </code></pre>
  
  <p>I need to get all the values for the given keyword.</p>
  
  <p>I used <code>nodes = doc.css("[name]")</code> to get the <code>&lt;Room id="bla" name="black" &gt;&lt;blah id="blue" name="brown"&gt;&lt;/blah&gt;&lt;/Room&gt;</code>.\</p>
  
  <p>But how do I get the value for a key from this. Is there any easier way to do this?</p>