Scripting/Server/Classes/XML/FirstChild
First top-level XmlElement (optionally the first with this tag name).
Syntax
doc.FirstChild([name])Arguments
- string name (optional)
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.
Related pages
- XmlDocument
- doc.LoadFile
- doc.LinkChild
- doc.Clear
- XmlElement
- el.FirstChild
- el.LinkChild
- el.RemoveChild
- el.GetAttribute
- el.Clear
Section: XML
Categories: Server methods | XML