Fix Bug when Convert Xml and Xml dont have namespace and one of children have namespace

This commit is contained in:
Ygal
2014-02-20 22:36:35 +02:00
parent 71a91bf34f
commit b81b984448
2 changed files with 24 additions and 3 deletions
@@ -1232,10 +1232,9 @@ namespace Newtonsoft.Json.Converters
if (reader.TokenType != JsonToken.EndObject)
{
manager.PushScope();
DeserializeNode(reader, document, manager, element);
manager.PopScope();
manager.RemoveNamespace(string.Empty, manager.DefaultNamespace);
}
}
}
@@ -1394,6 +1393,7 @@ namespace Newtonsoft.Json.Converters
}
else
{
finishedAttributes = true;
}