title: Scala XML Building: Adding children to existing Nodes
body: <p>I Have an XML Node that I want to add children to over time:</p>
  
  <pre><code>val root: Node = &lt;model&gt;&lt;/model&gt;
  </code></pre>
  
  <p>But I cannot see methods such as <em>addChild()</em>, as I would like to write something along the lines of:</p>
  
  <pre><code>def addToModel() = {
      root.addChild(&lt;subsection&gt;content&lt;/subsection&gt;)
  }
  </code></pre>
  
  <p>So after a single call to this method the root xml would be:</p>
  
  <pre><code>&lt;model&gt;&lt;subsection&gt;content&lt;/subsection&gt;&lt;/model&gt;
  </code></pre>
  
  <p>The only class I can see that has the ability to append a Node is the NodeBuffer. Am I missing something fundamental here?</p>