公告
财富商城
积分规则
提问
发文
2019-06-14 21:17发布
姐就是有狂的资本
I have a string like this: "<Root><Child>Hey</Child></Root>"
"<Root><Child>Hey</Child></Root>"
How can I convert this to an XElement Object?
XElement
Use XElement.Parse method like below
XElement xmlTree = XElement.Parse("<Root><Child>Hey</Child></Root>"); Console.WriteLine(xmlTree);
最多设置5个标签!
Use XElement.Parse method like below