Simple:

    root.addNode("ex:test");

where "ex" is a registered namespace.