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

Function

xmlNodeGetName

Server and clientXMLIdentical to MTA:SA

Returns the node's tag name (e.g. "spawn" for <spawn/>).

Syntax

string xmlNodeGetName(xmlnode node)

Arguments

nodexmlnode
The node.

Returns

The name, or false.

Example

local root = xmlLoadString("<config/>")
outputDebugString(xmlNodeGetName(root))
xmlUnloadFile(root)

See also