Instead of doing this\[code\]xml.SelectNodes(string.Format("//a[@name={0}]", name));\[/code\]I would like to do something along these lines:\[code\]xml.XPath.AddParameter("$name", name);xml.SelectNodes("//a[@name=$name]");\[/code\]of course, the XmlDocument object does not have an XPath property nor is there an Xpath object with an AddParameter method.Is it even possible to implement this kind of functionality without having to implement a class that derives from the XsltContext class?