Create xml Using Dom and Use xPath to read value from it. Create XML file Dynamically Using ASP.Net C# On Server. Generate XML Document with attributes : Xml Creation « XML « C# / CSharp Tutorial. Creating a XML Document from scratch without using a file in C# « The Bonobo Journal.