Embeds an XML attachment with mime-type Xml.

Namespace:  Gallio.Common.Markup
Assembly:  Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
public TextAttachment EmbedXml(
	string attachmentName,
	string xml
)
Visual Basic (Declaration)
Public Function EmbedXml ( _
	attachmentName As String, _
	xml As String _
) As TextAttachment

Parameters

attachmentName
Type: System..::.String
The name of the attachment to create or null to automatically assign one. The attachment name must be unique within the document.
xml
Type: System..::.String
The XML to attach.

Return Value

The attachment.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionThrown if xml is null.
System..::.InvalidOperationExceptionThrown if there is already an attachment with the same name.

See Also