xmlunit-core : Org.XmlUnit.Input Namespace

CommentLessSource Class

ISource implementation that is obtained from a different source by stripping all comments.

Syntax

public sealed class CommentLessSource : Org.XmlUnit.ISource

Remarks

As of XMLUnit.NET 2.5.0 it is possible to select the XSLT version to use for the stylesheet. The default now is 2.0, it used to be 1.0 and you may need to change the value if your transformer doesn't support XSLT 2.0.

Requirements

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

Members

See Also: Inherited members from object.

Public Constructors

Creates a new Source with the same content as another source removing all comments using an XSLT stylesheet of version 2.0.
Creates a new Source with the same content as another source removing all comments.

Public Properties

[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.

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

CommentLessSource Constructor

Creates a new Source with the same content as another source removing all comments using an XSLT stylesheet of version 2.0.

Syntax

public CommentLessSource (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.7.1.175

CommentLessSource Constructor

Creates a new Source with the same content as another source removing all comments.

Syntax

public CommentLessSource (Org.XmlUnit.ISource originalSource, string xsltVersion)

Parameters

originalSource
source with the original content
xsltVersion
use this version for the stylesheet

Remarks

since XMLUnit 2.5.0

Requirements

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

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.7.1.175

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.7.1.175