web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Convert XML File to StreamTextIO in D365FO

(0) ShareShare
ReportReport
Posted on by 35

Hi, I've a requirement where i need to convert a records into XML file and then save it into a stream. XML file has been generated correctly but i need to save it to stream. I've seen some blogs related to CSV, where CSV records save in container & then pass in streamTextIO.Write(Container). But unfortunately in XML format how can i save the XML file to container so the file could be save to stream. Anyone have any suggestion?

Regards,

Zohan

  • Verified answer
    Martin Dráb Profile Picture
    240,742 Most Valuable Professional on at

    How do you create XML?

    For example, System.Xml.XmlDocument class has Save() method accepting a stream object, therefore you can write it directly to a stream instead of saving it to a file and then loading this file again to a stream.

  • Zohan_Shahid Profile Picture
    35 on at

    HI Martin,

    Thankyou. It worked

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 415 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 374

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 365 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans