title: How to add a node to XML with XMLBeans XmlObject
body: <p>My goal is to take an XML string and parse it with XMLBeans XmlObject and add a few child nodes.</p>
  
  <p>Here's an example document (xmlString),</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;rootNode&gt;
   &lt;person&gt;
    &lt;emailAddress&gt;joefoo@example.com&lt;/emailAddress&gt;
   &lt;/person&gt;
  &lt;/rootNode&gt;
  </code></pre>
  
  <p>Here's the way I'd like the XML document to be after adding some nodes,</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;rootNode&gt;
   &lt;person&gt;
    &lt;emailAddress&gt;joefoo@example.com&lt;/emailAddress&gt;
    &lt;phoneNumbers&gt;
     &lt;home&gt;555-555-5555&lt;/home&gt;
     &lt;work&gt;555-555-5555&lt;/work&gt;
    &lt;phoneNumbers&gt;
   &lt;/person&gt;
  &lt;/rootNode&gt;
  </code></pre>
  
  <p>Basically, just adding the <code>&lt;phoneNumbers/&gt;</code> node with two child nodes <code>&lt;home/&gt;</code> and <code>&lt;work/&gt;</code>.</p>
  
  <p>This is as far as I've gotten,</p>
  
  <pre><code>XmlObject xml = XmlObject.Factory.parse(xmlString);
  </code></pre>
  
  <p>Thank you</p>