I am creating an application in .NET Core that will handle some XML files.
In .NET 4.6 I have the following code:
var document = new XmlDocument(xml);
var node = document.SelectSingleNode("/SOMEPATH");
var value = node.GetValue("//SOMEOTHERPATH");
Apparently SelectSingleNode
and GetValue
don't exist in System.XML anymore.
What would be the equivalent functions in .NET Core?