Scripting/Server/Classes/XML/Clear

Empties the document.

Syntax

doc.Clear()

Example

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

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

Section: XML

Categories: Server methods | XML