9. Create a new XML document in memory

[<<<] [>>>]

This function should be used to create a new XML document in memory.

The second parameter (xml version) is optional. If not provided, it defaults to version="1.0"

It would create a header that looks like: <?xml version="1.0">

 doc = mxml::NewDoc(<string version>)

[<<<] [>>>]