and an exception is thrown when DotTiled tries to parse it:
Unhandled exception. System.Xml.XmlException: value attribute is required
at DotTiled.Serialization.Tmx.ExtensionsXmlReader.GetRequiredAttribute(XmlReader reader, String attribute)
at DotTiled.Serialization.Tmx.TmxReaderBase.<ReadProperties>b__33_0(XmlReader r)
at DotTiled.Serialization.Tmx.ExtensionsXmlReader.ReadList[T](XmlReader reader, String wrapper, String elementName, Func`2 readElement)
at DotTiled.Serialization.Tmx.TmxReaderBase.ReadProperties()
at DotTiled.Serialization.Tmx.TmxReaderBase.<>c__DisplayClass19_0.<ReadObject>b__1()
at DotTiled.Serialization.Tmx.ExtensionsXmlReader.ProcessChildren(XmlReader reader, String wrapper, Func`3 getProcessAction)
at DotTiled.Serialization.Tmx.TmxReaderBase.ReadObject()
at DotTiled.Serialization.Tmx.TmxReaderBase.<>c__DisplayClass18_0.<ReadObjectLayer>b__3()
at DotTiled.Serialization.Tmx.ExtensionsXmlReader.ProcessChildren(XmlReader reader, String wrapper, Func`3 getProcessAction)
at DotTiled.Serialization.Tmx.TmxReaderBase.ReadObjectLayer()
at DotTiled.Serialization.Tmx.TmxReaderBase.<>c__DisplayClass17_0.<ReadMap>b__8()
at DotTiled.Serialization.Tmx.ExtensionsXmlReader.ProcessChildren(XmlReader reader, String wrapper, Func`3 getProcessAction)
at DotTiled.Serialization.Tmx.TmxReaderBase.ReadMap()
at DotTiled.Serialization.Tmx.TmxMapReader.ReadMap()
at DotTiled.Serialization.MapReader.ReadMap()
at DotTiled.Serialization.Loader.LoadMap(String mapPath)
I have a custom string property on an object When the string is only one line, it has a value property as the parser expects:
but when I add a newline in Tiled, the string becomes content of the tag:
and an exception is thrown when DotTiled tries to parse it: