I think this function should be static and call the constructor. This allows for easier `Printer.print(xml)` usage.