xmlunit-core : Org.XmlUnit.Xpath Namespace

XPathEngine Class

Simplified access to System.Xml.XPath API.

Syntax

public class XPathEngine : IXPathEngine

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Xpath
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.7.1.175

Members

See Also: Inherited members from object.

Public Constructors

Documentation for this section has not yet been entered.

Public Properties

[write-only]
NamespaceContext IDictionary<string, string> . Establish a namespace context mapping from URI to prefix that will be used in Comparison.Detail.XPath.

Public Methods

Evaluate (string, Org.XmlUnit.ISource) : string
Evaluates an XPath expression and stringifies the result.
Evaluate (string, System.Xml.XmlNode) : string
Evaluates an XPath expression and stringifies the result.
SelectNodes (string, Org.XmlUnit.ISource) : IEnumerable<System.Xml.XmlNode>
Returns a potentially empty collection of Nodes matching an XPath expression.
SelectNodes (string, System.Xml.XmlNode) : IEnumerable<System.Xml.XmlNode>
Returns a potentially empty collection of Nodes matching an XPath expression.

Extension Methods

static
Singleton<T> (this T) : IEnumerable<T>
An enumerable containing a single element.

Member Details

XPathEngine Constructor

Documentation for this section has not yet been entered.

Syntax

public XPathEngine ()

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Xpath
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.7.1.175

Evaluate Method

Evaluates an XPath expression and stringifies the result.

Syntax

public string Evaluate (string xPath, Org.XmlUnit.ISource s)

Parameters

xPath
Documentation for this section has not yet been entered.
s
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Xpath
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.7.1.175

Evaluate Method

Evaluates an XPath expression and stringifies the result.

Syntax

public string Evaluate (string xPath, System.Xml.XmlNode n)

Parameters

xPath
Documentation for this section has not yet been entered.
n
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Xpath
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.7.1.175

NamespaceContext Property

Establish a namespace context mapping from URI to prefix that will be used in Comparison.Detail.XPath.

Syntax

public IDictionary<string, string> NamespaceContext { set; }

Value

Documentation for this section has not yet been entered.

Remarks

Without a namespace context (or with an empty context) the XPath expressions will only use local names for elements and attributes.

Requirements

Namespace: Org.XmlUnit.Xpath
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.7.1.175

SelectNodes Method

Returns a potentially empty collection of Nodes matching an XPath expression.

Syntax

Parameters

xPath
Documentation for this section has not yet been entered.
s
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Xpath
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.7.1.175

SelectNodes Method

Returns a potentially empty collection of Nodes matching an XPath expression.

Syntax

Parameters

xPath
Documentation for this section has not yet been entered.
n
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Xpath
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.7.1.175