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:
__NOTOC__
__NOTOC__
{{Server client function}}
{{Server client function}}
{{deprecated}}
This function loads an XML file into the xml tree. You can have multiple xml files loaded at once if you wish.
This function loads an XML file into the xml tree. You can have multiple xml files loaded at once if you wish.



Revision as of 14:36, 29 August 2007

Emblem-important.png This function is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be a more generic way to perform what it does.

This function loads an XML file into the 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