Utility algorithms that work on DOM nodes.
See Also: Inherited members from object.
static
|
GetAttributes
(System.Xml.XmlNode)Obtains an element's attributes as dictionary. |
|
static
|
GetMergedNestedText
(System.Xml.XmlNode)Tries to merge all direct Text and CDATA children of the given Node and concatenates their value. |
|
static
|
GetQName
(this System.Xml.XmlNode)Extracts a Node's name and namespace URI (if any). |
|
static
|
NormalizeWhitespace
(System.Xml.XmlNode)Creates a new Node (of the same type as the original node) that is similar to the orginal but doesn't contain any empty text or CDATA nodes and where all textual content including attribute values or comments are normalized. |
|
static
|
StripWhitespace
(System.Xml.XmlNode)Creates a new Node (of the same type as the original node) that is similar to the orginal but doesn't contain any empty text or CDATA nodes and where all textual content including attribute values or comments are trimmed. |
Obtains an element's attributes as dictionary.Syntax
public static IDictionary<System.Xml.XmlQualifiedName, string> GetAttributes (System.Xml.XmlNode n)Parameters
- 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.Util
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.2.0.90
Tries to merge all direct Text and CDATA children of the given Node and concatenates their value.Syntax
public static string GetMergedNestedText (System.Xml.XmlNode n)Parameters
- 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.Util
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.2.0.90
Extracts a Node's name and namespace URI (if any).Syntax
public static System.Xml.XmlQualifiedName GetQName (this System.Xml.XmlNode n)Parameters
- 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.Util
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.2.0.90
Creates a new Node (of the same type as the original node) that is similar to the orginal but doesn't contain any empty text or CDATA nodes and where all textual content including attribute values or comments are normalized.Syntax
public static System.Xml.XmlNode NormalizeWhitespace (System.Xml.XmlNode original)Parameters
- original
- Documentation for this section has not yet been entered.
Returns
Documentation for this section has not yet been entered.Remarks
"normalized" in this context means all whitespace characters are replaced by space characters and consecutive whitespace characaters are collapsed.Requirements
Namespace: Org.XmlUnit.Util
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.2.0.90
Creates a new Node (of the same type as the original node) that is similar to the orginal but doesn't contain any empty text or CDATA nodes and where all textual content including attribute values or comments are trimmed.Syntax
public static System.Xml.XmlNode StripWhitespace (System.Xml.XmlNode original)Parameters
- original
- 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.Util
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.2.0.90