C-DEngine 5.105

TheCommonUtils..::..cdeCreateXMLElement Method (String, array<Byte>[]()[][])

Create an XML element.

Namespace:  nsCDEngine.BaseClasses
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static string cdeCreateXMLElement(
	string strInput,
	byte[] pTag
)
Public Shared Function cdeCreateXMLElement ( _
	strInput As String, _
	pTag As Byte() _
) As String
public:
static String^ cdeCreateXMLElement(
	String^ strInput, 
	array<unsigned char^>^ pTag
)

Parameters

strInput
Type: String
The stand-alone XML element (when pTag is null) or the XML content (when pTag is non-null).
pTag
Type: array<Byte>[]()[][]
Either null, or the outer XML tag name as a byte array.

Return Value

A string containing XML.

Remarks


Create a stand-alone XML element, or an XML element between a provided tag. When null is provided for the tag, the result is >strInput /> followed by newline character. When a non-null value is provided for the tag, the result is >tag> strInput >/tag>