GetRootElement: Difference between revisions
Jump to navigation
Jump to search
(→Syntax) |
No edit summary |
||
Line 2: | Line 2: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">element getRootElement ()</syntaxhighlight> | |||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua"> | |||
root = getRootElement () | |||
version = getElementData ( root, "version" ) | |||
</syntaxhighlight> |
Revision as of 21:04, 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
element getRootElement ()
Example
root = getRootElement () version = getElementData ( root, "version" )