XmlLoadFile: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[Category:Incomplete]]
[[Category:Incomplete]]
__NOTOC__  
__NOTOC__  
This fake function is for use with blah & blah and does blahblahblabhalbhl
This function loads an XML file into an xml tree. You can have multiple xml files loaded at once if you wish.


==Syntax==  
==Syntax==  
<syntaxhighlight lang="xml">
<syntaxhighlight lang="lua">
xmlnode xmlLoadFile ( string filename )               
xmlnode xmlLoadFile ( string filename )               
</syntaxhighlight>  
</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
*'''argumentName:''' description
*'''filename:''' The path to the file you wish to load.
 
===Optional Arguments===
{{OptionalArg}}
*'''argumentName2:''' descriptiona
*'''argumentName3:''' description


===Returns===
===Returns===
Returns ''true'' if blah, ''false'' otherwise.
Returns an [[xmlnode]] object if successful, or ''false'' otherwise.


==Example==  
==Example==  
This example does...
This example loads an XML file called ''test.xml''.
<syntaxhighlight lang="xml">
<syntaxhighlight lang="lua">
--This line does...
node = xmlLoadFile ( "test.xml" )
blabhalbalhb --abababa
--This line does this...
mooo
</syntaxhighlight>
</syntaxhighlight>


==See Also==
==See Also==
{{FunctionArea_Functions}}
{{XML_functions}}

Revision as of 22:56, 20 May 2006


This function loads an XML file into an xml tree. You can have multiple xml files loaded at once if you wish.

Syntax

xmlnode xmlLoadFile ( string filename )              

Required Arguments

  • filename: The path to the file you wish to load.

Returns

Returns an xmlnode object if successful, or false otherwise.

Example

This example loads an XML file called test.xml.

node = xmlLoadFile ( "test.xml" )

See Also