title: set tag attribute and add plain text content to the tag using nokogiri builder (ruby)
body: <p>I am trying to build XML using Nokogiri with some tags that have both attributes and plain text inside the tag.  So I am trying to get to this:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0"?&gt;
  &lt;Transaction requestName="OrderRequest"&gt;
    &lt;Option b="hive"&gt;hello&lt;/Option&gt;
  &lt;/Transaction&gt;
  </code></pre>
  
  <p>Using builder I have this:</p>
  
  <pre><code>builder = Nokogiri::XML::Builder.new { |xml|
    xml.Transaction("requestName" =&gt; "OrderRequest") do
      xml.Option("b" =&gt; "hive").text("hello")
    end
  }
  </code></pre>
  
  <p>which renders to:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;Transaction requestName="OrderRequest"&gt;
    &lt;Option b="hive" class="text"&gt;hello&lt;/Option&gt;
  &lt;/Transaction&gt;
  </code></pre>
  
  <p>So it produces 
  <code>&lt;Option b="hive" class="text"&gt;hello&lt;/Option&gt;</code> 
  where I would just like it to be 
  <code>&lt;Option b="hive"&gt;hello&lt;/Option&gt;</code></p>
  
  <p>I am not sure how to do that.  If I try to get a Nokogiri object by just feeding it the XML I want, it renders back exactly what I need with the internal text being within the <code>&lt;Option&gt;</code> tag set to <code>children=[#&lt;Nokogiri::XML::Text:0x80b9e3dc "hello"&gt;]</code> and I don't know how to set that from builder.</p>
  
  <p>If anyone has a reference to that in the Nokogiri documentation, I would appreciate it.</p>