Scripting/Server/Classes/XML/FirstChild_2

Walk the tree. Returns an XmlElement or null.

Syntax

el.FirstChild([name])
el.NextSibling([name])

Arguments

Example

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

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

Section: XML

Categories: Server methods | XML