Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Sets whether to include close tags for empty nodes.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
XML | 12.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
Flag | The new flag value. | 1 |
Returns OK or error.
Try enabled:
MBS("XML.SetSaveNoEmptyTags"; 1) & MBS( "XML.Format"; "<c><a></a></c>")
Example result:
OK<?xml version="1.0" encoding="UTF-8"?>
<c>
<a></a>
</c>
Try disabled:
MBS("XML.SetSaveNoEmptyTags"; 0) & MBS( "XML.Format"; "<c><a></a></c>")
Example result:
OK<?xml version="1.0" encoding="UTF-8"?>
<c>
<a/>
</c>
This function is free to use.
Created 10th August 2022, last changed 10th August 2022