- Home /
I am getting an xml error that doesn't seem to be from a problem with my code
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 :0 at System.Xml.XmlTextReaderImpl.Throw (System.String res, System.String[] args) [0x00029] in :0 at System.Xml.XmlTextReaderImpl.Throw (System.Int32 pos, System.String res, System.String[] args) [0x0000c] in :0 at System.Xml.XmlTextReaderImpl.ParseQName (System.Boolean isQName, System.Int32 startOffset, System.Int32& colonPos) [0x00088] in :0 at System.Xml.XmlTextReaderImpl.ParseQName (System.Int32& colonPos) [0x00000] in :0 at System.Xml.XmlTextReaderImpl.ParseElement () [0x000b2] in :0 at System.Xml.XmlTextReaderImpl.ParseElementContent () [0x0016f] in :0 at System.Xml.XmlTextReaderImpl.Read () [0x00085] in :0 at System.Xml.XmlTextReader.Read () [0x00000] in :0 at System.Xml.XmlReader.ReadElementString () [0x0008a] in :0 at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderERPSettings.Read2_ERPSettings (System.Boolean isNullable, System.Boolean checkType) [0x002c8] in :0 at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderERPSettings.Read3_ERPSettings () [0x00050] in :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 :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 :0 at System.Xml.Serialization.XmlSerializer.Deserialize (System.Xml.XmlReader xmlReader, System.String encodingStyle) [0x00000] in :0 at System.Xml.Serialization.XmlSerializer.Deserialize (System.IO.Stream stream) [0x0001c] in :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.
Answer by billy13O1 · Jan 22 at 12:41 AM
For anyone struggling with this problem I found that deleting Discord Presence (it displays your current unity project as your discord status) works
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Using JSON to get tree data into JavaScript objects 3 Answers
Loading XML causes game freeze 2 Answers
Loading a large xml file (~200 multi-level nodes) into Unity 1 Answer