x) Fix xml to grab from actual value if v= doesnt exist

This commit is contained in:
Marc Hernandez 2023-11-05 07:58:57 -08:00
parent 5a6f1220e6
commit f4a3410e89

View File

@ -217,9 +217,18 @@ namespace lib
private object DeserializeConcrete( XmlElement elem, Type type ) private object DeserializeConcrete( XmlElement elem, Type type )
{ {
string val = elem.GetAttribute("v"); string val = "";
if( !type.IsEnum ) if( elem.HasAttribute("v") )
{
val = elem.GetAttribute("v");
}
else
{
val = elem.InnerText;
}
if ( !type.IsEnum )
{ {
try try
{ {