XmlNodeGetParent: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: {{Server client function}} __NOTOC__ Returns the parent node of an xml node. ==Syntax== <syntaxhighlight lang="lua"> xmlnode xmlNodeGetParent ( xmlnode node ) </syntaxhighlight> ===Required Arguments=== *'''node:'...)
 
mNo edit summary
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Server client function}}
{{Server client function}}
{{Needs_Example}}
__NOTOC__
__NOTOC__
Returns the parent node of an xml node.
Returns the parent node of an xml node.


Line 8: Line 8:
xmlnode xmlNodeGetParent ( xmlnode node )
xmlnode xmlNodeGetParent ( xmlnode node )
</syntaxhighlight>
</syntaxhighlight>
{{OOP||[[xmlnode]]:getParent|parent}}


===Required Arguments===
===Required Arguments===
Line 19: Line 20:
==See Also==
==See Also==
{{XML functions}}
{{XML functions}}
[[ru:xmlNodeGetParent]]

Latest revision as of 06:56, 21 December 2015

Accessories-text-editor.png Script Example Missing Function XmlNodeGetParent needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.


Returns the parent node of an xml node.

Syntax

xmlnode xmlNodeGetParent ( xmlnode node )

OOP Syntax Help! I don't understand this!

Method: xmlnode:getParent(...)
Variable: .parent


Required Arguments

  • node: the node of which you want to know the parent.

Returns

Returns the parent node of the specified node if successful. Returns false if the specified node is the root node or an invalid node was passed.

Example

See Also