Scripting/Server/Classes/XML/Clear_2

Remove all children and attributes.

Syntax

el.Clear()

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "clear" )
	{
		// el is a el handle (see XML)
		el.Clear();
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: XML

Categories: Server methods | XML