| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
XML.Release
Releases an XML object.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| XML | 7.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "XML.Release"; XMLRef ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| XMLRef | A XML reference number. Or a list of reference numbers. |
$XML |
Result
Returns OK or error.
Description
Releases an XML object.Examples
Release a parsed XML document:
Set Variable [ $xml ; Value: MBS( "XML.Parse"; "<list><item>1</item><item>2</item></list>" ) ]
Set Variable [ $count ; Value: MBS( "XML.NodeCount"; $xml; "item" ) ]
# free the memory when done, the reference number is invalid afterwards
Set Variable [ $r ; Value: MBS( "XML.Release"; $xml ) ]
Set Variable [ $count ; Value: MBS( "XML.NodeCount"; $xml; "item" ) ]
# free the memory when done, the reference number is invalid afterwards
Set Variable [ $r ; Value: MBS( "XML.Release"; $xml ) ]
See also
- CURL.Release
- SSH.Release
- WMFP.Release
- X509.Release
- XML.List
- XML.NodeCount
- XML.Parse
- XML.ReadContainer
- XML.ReadFile
- XML.ReleaseAll
Release notes
- Version 7.3
- Added XML.Parse and XML.Release to parse XML once and query several times to get better performance.
Example Databases
Blog Entries
This function is free to use.
Created 14th July 2017, last changed 6th November 2026
MarkDown version: XMLRelease.md