Scripting/Server/Classes/XML/FirstChild

First top-level XmlElement (optionally the first with this tag name).

Syntax

doc.FirstChild([name])

Arguments

Example

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

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

Section: XML

Categories: Server methods | XML