Added XML support to Output class