I am creating a Xml like format using XmlWriter. But in the output there is version information also.
XmlWriter
You can use
XmlWriterSettings class
and use XmlWriterSettings.OmitXmlDeclaration Property