C-DEngine 5.105

TheCommonUtils..::..cdeCreateXMLElement Method (String, String)

Create an XML element.

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

Syntax


public static string cdeCreateXMLElement(
	string strInput,
	string pTag
)
Public Shared Function cdeCreateXMLElement ( _
	strInput As String, _
	pTag As String _
) As String
public:
static String^ cdeCreateXMLElement(
	String^ strInput, 
	String^ 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: String
Either null, or the outer XML tag name.

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>