I am working on a game and I started getting this random xml error that appears to have no effect on my current code. I do not use XML other that stuff like to make reading my code easier. The error appears whenever I run the game. Here is the error message:
System.InvalidOperationException: There is an error in XML document (8, 2). —> System.Xml.XmlException: Name cannot begin with the ‘<’ character, hexadecimal value 0x3C. Line 8, position 2.
at System.Xml.XmlTextReaderImpl.Throw (System.Exception e) [0x00027] in <0f9699188f0c414ea6fb5557f5c16d15>:0
at System.Xml.XmlTextReaderImpl.Throw (System.String res, System.String args) [0x00029] in <0f9699188f0c414ea6fb5557f5c16d15>:0
at System.Xml.XmlTextReaderImpl.Throw (System.Int32 pos, System.String res, System.String args) [0x0000c] in <0f9699188f0c414ea6fb5557f5c16d15>:0
at System.Xml.XmlTextReaderImpl.ParseQName (System.Boolean isQName, System.Int32 startOffset, System.Int32& colonPos) [0x00088] in <0f9699188f0c414ea6fb5557f5c16d15>:0
at System.Xml.XmlTextReaderImpl.ParseQName (System.Int32& colonPos) [0x00000] in <0f9699188f0c414ea6fb5557f5c16d15>:0
at System.Xml.XmlTextReaderImpl.ParseElement () [0x000b2] in <0f9699188f0c414ea6fb5557f5c16d15>:0
at System.Xml.XmlTextReaderImpl.ParseElementContent () [0x0016f] in <0f9699188f0c414ea6fb5557f5c16d15>:0
at System.Xml.XmlTextReaderImpl.Read () [0x00085] in <0f9699188f0c414ea6fb5557f5c16d15>:0
at System.Xml.XmlTextReader.Read () [0x00000] in <0f9699188f0c414ea6fb5557f5c16d15>:0
at System.Xml.XmlReader.ReadElementString () [0x0008a] in <0f9699188f0c414ea6fb5557f5c16d15>:0
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderERPSettings.Read2_ERPSettings (System.Boolean isNullable, System.Boolean checkType) [0x002c8] in <4ba8c9ccffdd46eda2b3aa3fb5a19fc7>:0
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderERPSettings.Read3_ERPSettings () [0x00050] in <4ba8c9ccffdd46eda2b3aa3fb5a19fc7>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object,System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object parameters, System.Globalization.CultureInfo culture) [0x00032] in <695d1cc93cca45069c528c15c9fdd749>:0
— End of inner exception stack trace —
at System.Xml.Serialization.XmlSerializer.Deserialize (System.Xml.XmlReader xmlReader, System.String encodingStyle, System.Xml.Serialization.XmlDeserializationEvents events) [0x0011b] in <0f9699188f0c414ea6fb5557f5c16d15>:0
at System.Xml.Serialization.XmlSerializer.Deserialize (System.Xml.XmlReader xmlReader, System.String encodingStyle) [0x00000] in <0f9699188f0c414ea6fb5557f5c16d15>:0
at System.Xml.Serialization.XmlSerializer.Deserialize (System.IO.Stream stream) [0x0001c] in <0f9699188f0c414ea6fb5557f5c16d15>:0
at ERP.ERPSettings.GetSettings () [0x00027] in C:\Users\Billy1301\Documents\Programming\Unity Games\Roguelike-Master\Assets\ERP\Editor\ERPSettings.cs:45
at ERP.ERP…cctor () [0x00032] in C:\Users\Billy1301\Documents\Programming\Unity Games\Roguelike-Master\Assets\ERP\Editor\ERP.cs:40
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes (System.Type)
Any help would be amazing.