GetRootElement

From Multi Theft Auto: Wiki
Revision as of 21:04, 17 May 2006 by EAi (talk | contribs)
Jump to navigation Jump to search

This function returns the root node for the element tree, called map. This represents the map node at the root of the XML document that contains map data.

Syntax

element getRootElement ()

Example

This example will retrieve the version of the currently loaded map, by reading the version argument from the root element of the element tree.

root = getRootElement ()
version = getElementData ( root, "version" )