Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Converts XML to HTML.

Component Version macOS Windows Linux Server iOS SDK
XML 14.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "XML.ToHTML"; xml { ; Flags; CSS Style } )   More


Parameter Description Example Flags
xml The XML you'd like to convert.
Can be XML as text or the reference returned by XML.Parse function, so you can make several times queries to the XML without parsing it each time.
"<hello>Hello World</hello>"
Flags The flags for processing.
Currently you can pass 1 to exclude html header and just get a HTML table.
0 Optional
CSS Style Extra CSS / HTML to include. Optional


Returns OK or error.


Converts XML to HTML.
We build for you a HTML with tables for each array and object. We include values and tag rows with even/odd CSS classes.

See also XML.ToJSON function to convert to JSON.


Convert XML to HTML:

    html = MBS("XML.ToHTML"; XML to HTML::XML Input; 0; XML to HTML::CSS);
    // now use XML colorization to color HTML:
    html = MBS("XML.Colorize"; html; XML to HTML::Dark Mode)
]; html)

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 11st December 2023, last changed 11st May 2024