Notifications
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 664 Most Valuable Professional
André Arnaud de Cal... 522 Super User 2025 Season 2
Sohaib Cheema 303 User Group Leader