Scripting/Server/Classes/XML/LinkChild
Attaches an element at the top level.
Syntax
doc.LinkChild(element)Arguments
- any element
Returns
bool
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "linkchild" )
{
// doc is a doc handle (see XML)
local result = doc.LinkChild( 0 );
MessagePlayer( "doc.LinkChild returned: " + result, player );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- XmlDocument
- doc.LoadFile
- doc.FirstChild
- doc.Clear
- XmlElement
- el.FirstChild
- el.LinkChild
- el.RemoveChild
- el.GetAttribute
- el.Clear
Section: XML
Categories: Server methods | XML