Announcements
No record found.
public void writeXmlFile(XmlDocument _xmlDoc) { using (var stream = new System.IO.MemoryStream()) { XMLWriter writer = XMLWriter::newStream(stream); //Convert the Xml to a memory stream and pass it to use File::SendFileToUser method _xmlDoc.writeTo(writer); writer.flush(); File::SendFileToUser(stream, 'XmlFile.xml'); } }
System.Xml.XmlWriterSettings netWriterSettings = new System.Xml.XmlWriterSettings(); netWriterSettings.Encoding = new System.Text.UTF8Encoding(false); XmlWriterSettings axWriterSettings = new XmlWriterSettings(netWriterSettings); XMLWriter writer = XMLWriter::newStream(stream, axWriterSettings);
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Giorgio Bonacorsi 653
André Arnaud de Cal... 501 Super User 2026 Season 1
CP04-islander 298