x) Fix xml to grab from actual value if v= doesnt exist
This commit is contained in:
parent
5a6f1220e6
commit
f4a3410e89
@ -217,7 +217,16 @@ namespace lib
|
||||
|
||||
private object DeserializeConcrete( XmlElement elem, Type type )
|
||||
{
|
||||
string val = elem.GetAttribute("v");
|
||||
string val = "";
|
||||
|
||||
if( elem.HasAttribute("v") )
|
||||
{
|
||||
val = elem.GetAttribute("v");
|
||||
}
|
||||
else
|
||||
{
|
||||
val = elem.InnerText;
|
||||
}
|
||||
|
||||
if ( !type.IsEnum )
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user