Scripting/Server/Classes/XML/Clear_2
Remove all children and attributes.
Contents
Syntax
el.Clear()Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "clear" )
{
// el is a el handle (see XML)
el.Clear();
}
}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.FirstChild
- el.LinkChild
- el.RemoveChild
- el.GetAttribute
Section: XML
Categories: Server methods | XML