Scripting/Server/Classes/XML/LinkChild

Attaches an element at the top level.

Syntax

doc.LinkChild(element)

Arguments

Returns

bool

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "linkchild" )
	{
		// doc is a doc handle (see XML)
		local result = doc.LinkChild( 0 );
		MessagePlayer( "doc.LinkChild returned: " + result, player );
	}
}

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

Section: XML

Categories: Server methods | XML