I am creating a Xml like format using XmlWriter. But in the output there is version information also.
XmlWriter
Use the ConformanceLevel and OmitXmlDeclaration properties. Example:
ConformanceLevel
OmitXmlDeclaration
XmlWriter w; w.Settings = new XmlWriterSettings(); w.Settings.ConformanceLevel = ConformanceLevel.Fragment; w.Settings.OmitXmlDeclaration = true;