added option to create the main document containing comments and first level nodes.
For a document like
<project>
  <version>
     1.2.3
  </version>
</project>
Without creating main document you would access version with:
   xmlDoc.child('version')
with create main document:
   xmlDoc.child('project').child('version').

This allows the correct export of the XML file only changing white spaces which was what I needed
- Changed test script to use YUI instead of YUI3 - works on windows
- Added test case for createMainDocument
- Corrected pretty print to pass a previously failed case - testConstructor

__________

added option to create the main document containing comments and first level nodes.
For a document like
<project>
  <version>
     1.2.3
  </version>
</project>
Without creating main document you would access version with:
   xmlDoc.child('version')
with create main document:
   xmlDoc.child('project').child('version').

This allows the correct export of the XML file only changing white spaces which was what I needed
Changed package.json to reference yui instead of yui3
added support for tags with "."
http://www.xml.com/pub/a/2001/07/25/namingparts.html
Merge pull request #4 from trmfreitas/master

Option to create the main document containing comments, instructions, and first level nodes