xmlunit-core : Org.XmlUnit.Diff Namespace

XPathContext Class

Mutable representation of an XPath.

Syntax

public class XPathContext : ICloneable

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

Members

See Also: Inherited members from object.

Public Constructors

Creates a new empty context without namespace context.
Creates a new empty context with namespace context.
Creates a new empty context with a given root without namespace context.
Creates a new empty context with a given root and namespace context.

Public Properties

[read-only]
ParentXPath string . A stringified XPath describing the current context's parent.
[read-only]
XPath string . A stringified XPath describing the current context.

Public Methods

AddAttribute (System.Xml.XmlQualifiedName)
Makes the an attribute known to this context.
AddAttributes<Q> (IEnumerable<Q>)
Makes the list of attributes known to this context.
AppendChildren<N> (IEnumerable<N>)
Adds knowledge about children of the current context with the new list - adds to the children already known.
Clone () : object
Creates a deep copy of this XPathContext.
NavigateToAttribute (System.Xml.XmlQualifiedName)
Positions the XPath at the named attribute of the current element.
NavigateToChild (int)
Positions the XPath at the nth child of the current context.
NavigateToParent ()
Positions the XPath at the parent of the current context.
SetChildren<N> (IEnumerable<N>)
Replaces knowledge about children of the current context with the new list.

Extension Methods

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

Member Details

XPathContext Constructor

Creates a new empty context without namespace context.

Syntax

public XPathContext ()

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

XPathContext Constructor

Creates a new empty context with namespace context.

Syntax

public XPathContext (IDictionary<string, string> prefix2uri)

Parameters

prefix2uri
map from prefix to namespace URI to use when building the XPath expression

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

XPathContext Constructor

Creates a new empty context with a given root without namespace context.

Syntax

public XPathContext (System.Xml.XmlNode root)

Parameters

root
the root of the XPath

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

XPathContext Constructor

Creates a new empty context with a given root and namespace context.

Syntax

public XPathContext (IDictionary<string, string> prefix2uri, System.Xml.XmlNode root)

Parameters

prefix2uri
map from prefix to namespace URI to use when building the XPath expression
root
the root of the XPath

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

AddAttribute Method

Makes the an attribute known to this context.

Syntax

public void AddAttribute (System.Xml.XmlQualifiedName attribute)

Parameters

attribute
the attribute to learn

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

AddAttributes<Q> Generic Method

Makes the list of attributes known to this context.

Syntax

public void AddAttributes<Q> (IEnumerable<Q> attributes)
where Q : System.Xml.XmlQualifiedName

Type Parameters

Q
Documentation for this section has not yet been entered.

Parameters

attributes
the attributes to learn

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

AppendChildren<N> Generic Method

Adds knowledge about children of the current context with the new list - adds to the children already known.

Syntax

public void AppendChildren<N> (IEnumerable<N> children)
where N : Org.XmlUnit.Diff.XPathContext.INodeInfo

Type Parameters

N
abstract representation of a child

Parameters

children
list of children to learn

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

Clone Method

Creates a deep copy of this XPathContext.

Syntax

public object Clone ()

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

NavigateToAttribute Method

Positions the XPath at the named attribute of the current element.

Syntax

public void NavigateToAttribute (System.Xml.XmlQualifiedName attribute)

Parameters

attribute
name of the attribute

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

NavigateToChild Method

Positions the XPath at the nth child of the current context.

Syntax

public void NavigateToChild (int n)

Parameters

n
index of child to navigate to

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

NavigateToParent Method

Positions the XPath at the parent of the current context.

Syntax

public void NavigateToParent ()

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

ParentXPath Property

A stringified XPath describing the current context's parent.

Syntax

public string ParentXPath { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

SetChildren<N> Generic Method

Replaces knowledge about children of the current context with the new list.

Syntax

public void SetChildren<N> (IEnumerable<N> children)
where N : Org.XmlUnit.Diff.XPathContext.INodeInfo

Type Parameters

N
abstract representation of a child

Parameters

children
list of children to learn

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241

XPath Property

A stringified XPath describing the current context.

Syntax

public string XPath { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Diff
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.10.0.241