title: creating a new, empty document with javascript
body: <p>I'm working with some very unintuitive xml (all the tags are things like "TX", "H", "VC"). </p>
  
  <p>I'd like to make a copy of this data, but with all of the tags renamed to what they actually mean. Can I create a new, empty document to put my new, nicely named tags in to?</p>
  
  <p>I've tried this: </p>
  
  <pre><code>doc = (new DOMParser()).parseFromString("", 'text/xml');
  </code></pre>
  
  <p>but when I do so, I wind up with a document that has a child node, rather than being empty. Furthermore, that child's tagname is "parsererror"</p>
  
  <p>So, any ideas how I can create an empty document?</p>