tweaking to meet validation spec
nexml node should be nex:nexml
avoid using newMXLDocument, not needed for saveXML and may
increase segfault possibility...?