ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. xmlNodeSetName

Function

xmlNodeSetName

Server and clientXMLIdentical to MTA:SA

Changes the node's tag name.

Syntax

bool xmlNodeSetName(xmlnode node, string name)

Arguments

nodexmlnode
The node.
namestring
The new name.

Returns

true on success.

Example

local root = xmlCreateFile("x.xml", "old")
xmlNodeSetName(root, "new")
xmlUnloadFile(root)

See also