The WriteChars method of the XmlWriter class writes characters to XML. It takes an array of characters and writes one character at a time.
The following code snippet takes an array of characters and writes them to an XML file.
using (XmlWriter writer = XmlWriter.Create("M.xml")) {
writer.WriteStartDocument();

Join the conversation! Your thoughts help the community grow.