XPathExpression.Compile Method (String, IXmlNamespaceResolver)

Compiles the specified XPath expression, with the IXmlNamespaceResolver object specified for namespace resolution, and returns an XPathExpression object that represents the XPath expression.

Namespace:  System.Xml.XPath
Assembly:  System.Xml.XPath (in System.Xml.XPath.dll)

public static XPathExpression Compile(
	string xpath,
	IXmlNamespaceResolver nsResolver
)

Parameters

xpath
Type: System.String
An XPath expression.
nsResolver
Type: System.Xml.IXmlNamespaceResolver
An object that implements the IXmlNamespaceResolver interface for namespace resolution.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: