Read XML file into XmlDocument

后端 未结 5 1067
孤街浪徒
孤街浪徒 2020-12-24 00:11

I am very new to C#. I have XML file (text.xml). I want to read that in XmlDocument and store the stream in string variable.

5条回答
  •  旧时难觅i
    2020-12-24 00:30

    If your .NET version is newer than 3.0 you can try using System.Xml.Linq.XDocument instead of XmlDocument. It is easier to process data with XDocument.

提交回复
热议问题