This project has moved. For the latest updates, please go here.

Convert Json to Xml without schema validation

Sep 28, 2010 at 4:12 AM
Edited Sep 28, 2010 at 4:15 AM


From the client I receive json string which contains Xml content and  want to convert back to XDocument using JsonConvert class Deserialize method. It throws an error if the json string contains the noNamespaceSchemaLocation attribute. I just want to convert Xml without the Xsd file validation which is specified in the noNamespaceSchemaLocation attribute.

Can you please let me know if there is any way in JSON.NET