I am facing the problem with converting XML file to JSON with following code:
Console.WriteLine("Start");
string inputPath = "input.xml";
// Load XML document
XmlDocument doc = new XmlDocument();
doc.Load(inputPath);
string outputPath = "output.json";
File.WriteAllText(outputPath, JsonConvert.SerializeXmlNode(doc));
Console.Write("End");
Console.ReadKey();
The file fills memory and that's problem. I didn't find solution without fill RAM.
How can I accomplish that? Thank you very much