Answer the question
In order to leave comments, you need to log in
How to convert large JSON file to XML?
Hello!
In general, the current implementation is as follows:
string file = File.ReadAllText("file.json");
XmlDocument doc = JsonConvert.DeserializeXmlNode("{\"dialog\":" + file + "}", "root");
file = doc.InnerXml.Replace("<root>", "<root><dialogs>");
doc = null;
file = file.Replace("</root>", "</dialogs></root>");
...
File.WriteAllText("output.xml", file);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question