rea*_*aln 33 c# xml xelement
我有一个像这样的字符串: "<Root><Child>Hey</Child></Root>"
"<Root><Child>Hey</Child></Root>"
如何将其转换为XElement对象?
XElement
Sai*_*ala 78
使用如下的XElement.Parse方法
XElement xmlTree = XElement.Parse("<Root><Child>Hey</Child></Root>"); Console.WriteLine(xmlTree);
归档时间:
13 年,10 月 前
查看次数:
29710 次
最近记录:
10 年,2 月 前