C# Corner
  • TECHNOLOGIES
  • FORUMS
  • JOBS
  • BOOKS
  • EVENTS
  • INTERVIEWS
  • Live
  • MORE
    • LEARN
    • Training
    • CAREER
    • MEMBERS
    • VIDEOS
    • NEWS
    • BLOGS
Sign Up Login
 
loading...
View All Comments
 
View All Messages
 
No unread notification.
loading...
View All Notifications
 
C# Corner
Post
  • An Article
  • A Blog
  • A News
  • A Video
  • An EBook
  • An Interview Question
Ask Question

Convert String to XML - .NET/C#

  • XAML Designer
  • Jan 04 2010
  • Resource
  • 1
  • 0
  • 154.2k
  • facebook
  • twitter
  • linkedIn
  • Reddit
  • WhatsApp
    • Email
    • Bookmark
  • expand
If you have a valid string in "str", you can use XmlDocument to load the string and then save string to an XML file using Save method of XmlDocument. Don't forget to import System.Xml namespace before using XmlDocument.

XmlDocument doc = new XmlDocument();
doc.LoadXml(str);
doc.Save("SSML.xml");     

TOP RESOURCES

  • WPF Button with Image
  • How to create a Grid in WPF Dynamically?
  • Automatically resize a Window to fit content in WPF
  • How to read and write binary data files in C#?
  • Convert String to XML - .NET/C#
  • How to Add and Remove Items in a WPF ListBox
  • How to read files in a folder or Directory in C#?
  • Close a Window in WPF
  • How to add a Button click event handler in WPF?
  • How to play sound using C#

View All

MOST LIKED RESOURCES

  • How to create a Grid in WPF Dynamically?
  • New Features in Asp.Net Core
  • Learn The Fundamentals Of Working In A Microsoft Azure Environment
  • GIT Cheat Sheet
  • Create a Web API with ASP.NET Core and Visual Studio for Windows
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms
  • Media Kit
  • Sitemap
  • Report a Bug
  • FAQ
  • Partners
  • C# Tutorials
  • Common Interview Questions
  • Stories
  • Consultants
  • Ideas
  • Certifications
  • Web3 Universe
  • Build with JavaScript
  • Let's React
  • DB Talks
  • Jumpstart Blockchain
  • interviews.help

©2023 C# Corner. All contents are copyright of their authors.