Create XML File in C#



Create XML File in C#

Create XML File in C#

Please follow me on Twitter to get more updates on memes, tech news, devops/developer content!
https://twitter.com/CodeDoge4

#xml #csharp

Project Files are in the following Link :

https://github.com/jc566/Youtube_Solutions/blob/master/Create%20XML%20Document/CreateXML.cs

MSDN XML Documentation Info :
https://github.com/jc566/Youtube_Solutions/blob/master/Create%20XML%20Document/MSDN%20XML%20Doc.png

Quick example of how to build a XML documentation using C# code.

Also a brief introduction to implement LINQ with XML.

Basic Syntax/Pseudocode is :
XDocument variableName = new XDocument(
new XElement(“Root” ,
new XElement(“Child1″,”Data1”)
)
);

variableName.Save(“FilePath”);

Comments are closed.