XmlFindSubNode: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
<syntaxhighlight lang="lua">xmlnode xmlFindSubNode ( xmlnode parent, string subnode, int index )</syntaxhighlight> | <syntaxhighlight lang="lua">xmlnode xmlFindSubNode ( xmlnode parent, string subnode, int index )</syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
* ''' | <!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --> | ||
* ''' | *'''argumentName:''' description | ||
* ''' | |||
<!-- Only include this section below if there are optional arguments --> | |||
===Optional Arguments=== | |||
{{OptionalArg}} | |||
*'''argumentName2:''' description | |||
*'''argumentName3:''' description | |||
===Returns=== | ===Returns=== | ||
Returns | Returns a table of resources. | ||
==Example== | ==Example== | ||
This function lists all loaded resources in the console. | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
function blabla () | |||
--this does blabla | |||
end | |||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{XML functions}} | {{XML functions}} |
Revision as of 16:48, 19 October 2007
This function returns a named sub node of a particular XML node.
Syntax
xmlnode xmlFindSubNode ( xmlnode parent, string subnode, int index )
Required Arguments
- argumentName: description
Optional Arguments
NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.
- argumentName2: description
- argumentName3: description
Returns
Returns a table of resources.
Example
This function lists all loaded resources in the console.
function blabla () --this does blabla end
See Also
- xmlCopyFile
- xmlCreateChild
- xmlCreateFile
- xmlDestroyNode
- xmlFindChild
- xmlLoadFile
- xmlLoadString
- xmlNodeGetAttribute
- xmlNodeGetAttributes
- xmlNodeGetChildren
- xmlNodeGetName
- xmlNodeGetParent
- xmlNodeGetValue
- xmlNodeSetAttribute
- xmlNodeSetName
- xmlNodeSetValue
- xmlSaveFile
- xmlUnloadFile