Mutable representation of an XPath.
See Also: Inherited members from object.
|
XPathContext
()
|
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. |
[read-only] | ParentXPath | string . A stringified XPath describing the current context's parent. |
[read-only] | XPath | string . A stringified XPath describing the current context. |
|
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
()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. |
static
|
Singleton<T>
(this T)An enumerable containing a single element. |
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
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
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
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
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
Makes the list of attributes known to this context.Syntax
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
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.INodeInfoType 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
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
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
Requirements
Positions the XPath at the nth child of the current context.Syntax
Parameters
- n
- index of child to navigate to
Remarks
Requirements
Positions the XPath at the parent of the current context.Syntax
public void NavigateToParent ()Remarks
Requirements
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
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.INodeInfoType 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
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