<PackageReference Include="System.Xml.XPath.XmlDocument" Version="4.7.0" />

System.Xml.XmlDocumentXPathExtensions

public static class XmlDocumentXPathExtensions
Provides extension methods for the XmlDocument and XmlNode for document navigation.
namespace System.Xml { public static class XmlDocumentXPathExtensions { public static XmlNodeList SelectNodes(this XmlNode node, string xpath); public static XmlNodeList SelectNodes(this XmlNode node, string xpath, XmlNamespaceManager nsmgr); public static XmlNode SelectSingleNode(this XmlNode node, string xpath); public static XmlNode SelectSingleNode(this XmlNode node, string xpath, XmlNamespaceManager nsmgr); public static XPathNavigator CreateNavigator(this XmlNode node); public static IXPathNavigable ToXPathNavigable(this XmlNode node); public static XPathNavigator CreateNavigator(this XmlDocument document); public static XPathNavigator CreateNavigator(this XmlDocument document, XmlNode node); } }