C-DEngine 5.105

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

Create an XML element.

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


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


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

Return Value

A string containing XML.


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>