Scripting/Server/Classes/XML/RemoveChild
Detach elements.
Syntax
el.RemoveChild(child)el.RemoveSibling()Arguments
- any child
Returns
bool
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "removechild" )
{
// el is a el handle (see XML)
local result = el.RemoveChild( 0 );
MessagePlayer( "el.RemoveChild returned: " + result, player );
}
}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.GetAttribute
- el.Clear
Section: XML
Categories: Server methods | XML