working toplevel API with valid NeXML
had to tweak nexml class to use version 0.9 and use namespaceDefinitions when writing node