ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. xmlUnloadFile

Function

xmlUnloadFile

Server and clientXMLIdentical to MTA:SA

Frees a document from memory. All its nodes become invalid. Unsaved changes are lost.

Syntax

bool xmlUnloadFile(xmlnode node)

Arguments

nodexmlnode
The document's root node.

Returns

true on success.

Example

local root = xmlLoadFile("data.xml", true)
if root then xmlUnloadFile(root) end

See also