Table of Contents

Class XmlTemplates

Namespace
SunamoXml.Generators
Assembly
SunamoXml.dll

Provides XML template strings and methods for creating XML document wrappers.

public static class XmlTemplates
Inheritance
XmlTemplates
Inherited Members

Fields

Xml

Standard XML declaration: <?xml version='1.0' encoding='utf-8'?>

public const string Xml = "<?xml version='1.0' encoding='utf-8'?>"

Field Value

string

Methods

GetXml1(string)

Creates an XML wrapper with one CDATA value.

public static string GetXml1(string value1)

Parameters

value1 string

The value to wrap in CDATA.

Returns

string

GetXml2(string, string)

Creates an XML wrapper with two CDATA values.

public static string GetXml2(string value1, string value2)

Parameters

value1 string

The first value to wrap in CDATA.

value2 string

The second value to wrap in CDATA.

Returns

string

GetXml3(string, string, string)

Creates an XML wrapper with three CDATA values.

public static string GetXml3(string value1, string value2, string value3)

Parameters

value1 string

The first value to wrap in CDATA.

value2 string

The second value to wrap in CDATA.

value3 string

The third value to wrap in CDATA.

Returns

string

GetXml4(string, string, string, string)

Creates an XML wrapper with four CDATA values.

public static string GetXml4(string value1, string value2, string value3, string value4)

Parameters

value1 string

The first value to wrap in CDATA.

value2 string

The second value to wrap in CDATA.

value3 string

The third value to wrap in CDATA.

value4 string

The fourth value to wrap in CDATA.

Returns

string

GetXml5(string, string, string, string, string)

Creates an XML wrapper with five CDATA values.

public static string GetXml5(string value1, string value2, string value3, string value4, string value5)

Parameters

value1 string

The first value to wrap in CDATA.

value2 string

The second value to wrap in CDATA.

value3 string

The third value to wrap in CDATA.

value4 string

The fourth value to wrap in CDATA.

value5 string

The fifth value to wrap in CDATA.

Returns

string