Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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