Data at the root level is invalid. Line 1, position 1 -why do I get this error while loading an xml file?

The LoadXml method is for loading an XML string directly. You want to use the Load method instead.