Documentation

CXMLCreator::createTagAttributed

static
CXMLCreator
CXMLCreator::createTagAttributed(string heavyTag);

The method createTagAttributed creates a new tag (CXMLCreator) based on the tag name heavyTag in a special format. Returns true if heavyTag is invalid.

Parameters

Parameter Description
heavyTag A string defining the tag name in the following format:

[Index:]TagName [Attribute="Attribute value" ...]

Index is a number that can be used to add a series of similar tags in an associated array.

Attribute can be specified as: attrPart:attrPart = "Value".

Example



CXMLCreator::createTagAttributed( "LicenseInfo xmlns=\"http://ws.strikeiron.com\"");

// Or
CXMLCreator::encodeValueLight( "LicenseInfo xmlns=\"http://ws.strikeiron.com\"",
array(
	"1:ArrayOfStringEl" => "String1", 
	"2:ArrayOfStringEl" => "String2"
	)
);
© «Bitrix24», 2001-2024
Up