Search code examples
xmllinq-to-xmlconfiguration-files

What is the difference between .cfg file and .xml file?


Can any one tell what's the difference between .cfg and .xml file?

As far as i know Xml start with header "?xml version=1.0"


Solution

  • Can any one tell what's the difference between .cfg and .xml file?

    .cfg is a file extension used for all kinds of file formats that contain configuration information.

    .xml is a file extension used for all kinds of XML based data formats.

    Config data can be expressed in XML.

    As far as i know Xml start with header "?xml version=1.0?

    No. The XML prolog is optional if the XML uses XML 1.0 and UTF-8 or UTF-16.