title: Create QDomNodes without QDomDocument
body: <p>Is it possible to create a QDomElement without having a QDomDocument available? For example, here is a function that is expected to build a node tree under the element <code>parent</code>:</p>
  
  <pre><code>void buildResponse (QDomDocument &amp;doc, QDomElement &amp;parent) {
      QDomElement child = doc.createElement("child");
      parent.appendChild(child);
  }
  </code></pre>
  
  <p>The only reason I have to pass <code>doc</code> is to use it as a factory to create elements that the function adds under <code>parent</code>. In the application I'm working on now, it would simplify my implementation slightly if I didn't have to lug the <code>QDomDocument</code> around.</p>
  
  <p>Is there a way to create nodes without having a document available?</p>