title: Cross platform Javascript XML tree creation, with namespaces and xpath?
body: <p>I'd like to create XML documents in a portable way in JavaScript. Coming from a Python background, I'm familiar with libraries like LXML and ElementTree, which give </p>
  
  <ul>
  <li>Elements are treated as objects, by default, rather than text.</li>
  <li>Documents are always tree-structured. Ie, new elements are typically appended to existing xpaths, having unclosed tags is not possible as elements always close themselves. </li>
  <li>Elements children are iterable</li>
  <li>Namespaces (and perhaps also namespace prefixes) are supported</li>
  </ul>
  
  <p>Essentially, I'm looking for a neat XML creation library that works across browsers. Any recommendations?</p>