/ Published in: C#
Reading xml from file and create XElement from string
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// read xml document from file to a string string s_xml = System.IO.File.ReadAllText("deneme.xml"); // create xelement from string XElement e = XDocument.Parse(s_xml).Root; //then take value of a field you need string HeaderVersion = e.Element("HeaderVersion").Value;