OUTPUT An object blessed into IO::Handle or one of its subclasses (such as IO::File), or a reference to a string; if this parameter is not present, the module will write to standard output. If a string reference is passed, it will capture the generated XML (as a string; to get bytes use the Encode module).