Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
XML.Tidy
Performs tidy on XML.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
XML | 14.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "XML.Tidy"; Input { ; Options } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
Input | The input XML. | "<title>test</title" // missing > | |
Options | The options as JSON object. | Optional |
Result
Returns OK or error.
Description
Performs tidy on XML.Sets error log, which can be queried with Text.TidyErrorLog function.
Returns new XML back after repairing.
For options, check this website:
https://api.html-tidy.org/tidy/tidylib_api_5.8.0/tidy_quickref.html
Use XML.Colorize to apply colors if needed.
By default we apply options to use utf-8 for input and output as encoding. Line endings use Char(13) as FileMaker does and we disable the tidy mark for the html header.
Examples
Cleanup some XML:
MBS( "XML.Tidy"; "<title>Test")
Example result: <title>Test</title>
See also
Release notes
- Version 14.4
- Added XML.Tidy function.
Example Databases
Blog Entries
- Neues MBS Plugin 14.4 für Claris FileMaker
- MBS Plugin 14.4 for Claris FileMaker
- MBS FileMaker Plugin, version 14.4pr1
This function checks for a license.
Created 21st July 2024, last changed 24th July 2024