GetRootElement: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
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.
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==
root = [[getRootElement]]()
==Example==
root = [[getRootElement]] ()
version = [[getElementData]] ( root, "version" )

Revision as of 11:29, 17 May 2006

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

root = getRootElement()

Example

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