Scripting/Server/Classes/XML/FirstChild_2
Walk the tree. Returns an XmlElement or null.
Syntax
el.FirstChild([name])el.NextSibling([name])Arguments
- string name (optional)
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.
Related pages
- XmlDocument
- doc.LoadFile
- doc.FirstChild
- doc.LinkChild
- doc.Clear
- XmlElement
- el.LinkChild
- el.RemoveChild
- el.GetAttribute
- el.Clear
Section: XML
Categories: Server methods | XML