我正在.NET Core中创建一个应用程序,它将处理一些XML文件。.NET Core中的System.XML等效函数
在.NET 4.6,我有以下代码:
var document = new XmlDocument(xml);
var node = document.SelectSingleNode("/SOMEPATH");
var value = node.GetValue("//SOMEOTHERPATH");
显然SelectSingleNode
和GetValue
不存在了System.XML了。
什么是.NET核心中的等效函数?
http://stackoverflow.com/questions/35089399/selectsinglenode-is-giving-compilation-error-in-dnx-core-5-0 –