Scripting/Server/Classes/XML/LinkChild_2
Attach a child / a sibling after it.
Syntax
el.LinkChild(child)el.LinkSibling(other)Arguments
- any child
- any other
Returns
bool
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "linkchild" )
{
// el is a el handle (see XML)
local result = el.LinkChild( 0 );
MessagePlayer( "el.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.LinkChild
- doc.Clear
- XmlElement
- el.FirstChild
- el.RemoveChild
- el.GetAttribute
- el.Clear
Section: XML
Categories: Server methods | XML