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:
{{Needs_Checking|Unspecified}}
__NOTOC__  
__NOTOC__  
This function loads an XML file into an xml tree. You can have multiple xml files loaded at once if you wish.
This function loads an XML file into an xml tree. You can have multiple xml files loaded at once if you wish.
Line 21: Line 23:
==See Also==
==See Also==
{{XML_functions}}
{{XML_functions}}
[[Category:Check_works_as_specified]]

Revision as of 04:04, 10 September 2006

Dialog-information.png This article needs checking.

Reason(s): Unspecified


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