xmlunit-core : Org.XmlUnit.Input Namespace

NormalizedSource Class

Performs XML normalization on a given ISource or DOM Node.

Syntax

public class NormalizedSource : Org.XmlUnit.ISource, IDisposable

Remarks

This means adjacent text nodes are merged to single nodes and empty Text nodes removed (recursively). See the linked API docs for details.

When reading documents a parser usually puts the document into normalized form anway. You will only need to perform XML normalization on DOM trees you have created programmatically.

https://msdn.microsoft.com/en-us/library/system.xml.xmlnode.normalize%28v=vs.110%29.aspx

Requirements

Namespace: Org.XmlUnit.Input
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.9.2.240

Members

See Also: Inherited members from object.

Public Constructors

Creates a new Source with the same content as another source normalizing the document.
Creates a new Source wrapping a XmlNode after normalizing it.
Creates a new Source wrapping a XmlNode after normalizing it.

Public Properties

[read-only]
Node System.Xml.XmlNode . The node this source is wrapping
[read-only]
Reader System.Xml.XmlReader . Documentation for this section has not yet been entered.
SystemId string . Documentation for this section has not yet been entered.

Public Methods

Dispose ()
Documentation for this section has not yet been entered.
override
ToString () : string
Documentation for this section has not yet been entered.

Protected Methods

Dispose (bool)
Documentation for this section has not yet been entered.

Extension Methods

static
Singleton<T> (this T) : IEnumerable<T>
An enumerable containing a single element.
static
ToDocument (this Org.XmlUnit.ISource) : System.Xml.XmlDocument
Creates a DOM Document from an ISource.
static
ToNode (this Org.XmlUnit.ISource) : System.Xml.XmlNode
Creates a DOM Node from an ISource.

Member Details

NormalizedSource Constructor

Creates a new Source with the same content as another source normalizing the document.

Syntax

public NormalizedSource (Org.XmlUnit.ISource originalSource)

Parameters

originalSource
source with the original content

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Input
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.9.2.240

NormalizedSource Constructor

Creates a new Source wrapping a XmlNode after normalizing it.

Syntax

public NormalizedSource (System.Xml.XmlNode node)

Parameters

node
source with the original content

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Input
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.9.2.240

NormalizedSource Constructor

Creates a new Source wrapping a XmlNode after normalizing it.

Syntax

public NormalizedSource (System.Xml.XmlNode node, string systemId)

Parameters

node
source with the original content
systemId
the systemId to use

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Input
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.9.2.240

Dispose Method

Documentation for this section has not yet been entered.

Syntax

public void Dispose ()

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Input
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.9.2.240

Dispose Method

Documentation for this section has not yet been entered.

Syntax

protected virtual void Dispose (bool disposing)

Parameters

disposing
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Input
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.9.2.240

Node Property

The node this source is wrapping

Syntax

public System.Xml.XmlNode Node { 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.Input
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.9.2.240

Reader Property

Documentation for this section has not yet been entered.

Syntax

public System.Xml.XmlReader Reader { 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.Input
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.9.2.240

SystemId Property

Documentation for this section has not yet been entered.

Syntax

public string SystemId { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Input
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.9.2.240

ToString Method

Documentation for this section has not yet been entered.

Syntax

public override string ToString ()

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Org.XmlUnit.Input
Assembly: xmlunit-core (in xmlunit-core.dll)
Assembly Versions: 2.9.2.240