Switch to a XML Writer to make the output XML Conform