Zoomed Image

AMSX Scripting Language - Command : xmltohtml

Summary

Convert the XML buffer to an HTML table string

Description

Renders the current XML document (mdoc) as a styled HTML table with configurable headers, column names, and CSS class prefixes. The result is placed in the result buffer. If a column name list is supplied, those names become the table header and excess columns can be trimmed.

Parameters

ParameterDescription
cmd1 to remove the "a" and "b" flag fields from output, 0 to include them
Argument 0CSS class prefix applied to table, thead, tr, th, tbody, td elements
Argument 11 to include column headers derived from the first XML record's field names, 0 to exclude headers
Argument 21 to untag (decode) the column header names, 0 to leave them as-is
Argument 3CSV list of explicit column header names; overrides headers derived from XML tags
Argument 41 to ignore columns beyond the count defined by argument 3, 0 to include all

Syntax


XmlToHtml "1 to remove the "a" and "b" flag fields from output, 0 to include them", "CSS class prefix applied to table, thead, tr, th, tbody, td elements", "1 to include column headers derived from the first XML record's field names, 0 to exclude headers", "1 to untag (decode) the column header names, 0 to leave them as-is", "CSV list of explicit column header names; overrides headers derived from XML tags", "1 to ignore columns beyond the count defined by argument 3, 0 to include all"

Return to the AMSX Command Reference