How do you write an XML file from an System.Xml.XmlReader?
I thought this would be a simple question but whenever I search I seem to be ending up with reading the fi
The simplest way would be to pass it into an XmlWriter, using a method such as this:
public void WriteOutXml(XmlReader xmlReader, string fileName) { var writer = XmlWriter.Create(fileName); writer.WriteNode(xmlReader, true); }