loadxml Data at the root level is invalid. Line 1, position 1. LoadXml() is for loading an XML string, not a file name.