Scripting/Server/Classes/XML/Clear
Empties the document.
Contents
Syntax
doc.Clear()Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "clear" )
{
// doc is a doc handle (see XML)
doc.Clear();
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- XmlDocument
- doc.LoadFile
- doc.FirstChild
- doc.LinkChild
- XmlElement
- el.FirstChild
- el.LinkChild
- el.RemoveChild
- el.GetAttribute
- el.Clear
Section: XML
Categories: Server methods | XML