HTML Compare Configuration File Schema Guide
This section documents every element in the XML schema for the HTML Compare REST configuration file. Use it alongside the Configuration Files topic.
Occurrence indicators: [*] = zero or more, [?] = zero or once, [+] = one or more.
Element: configuration (root)
The root element. Contains parameters.
Element: parameters
Contains all comparison parameter groups. Child elements:
|
Element |
Description |
|---|---|
|
|
Controls how text is compared. |
|
|
Controls inline structural change handling. |
|
|
HTML-specific output configuration. |
|
|
MathML comparison settings. |
|
|
SVG comparison and display settings. |
|
|
HTML table comparison behaviour. |
Element: comparisonType
Parent: parameters. Contains characterByCharacter.
Element: characterByCharacter
Parent: comparisonType. Type: xs:boolean.
When true, comparison operates at character level rather than word level.
Element: formattingConfiguration
Parent: parameters. Controls which HTML elements are marked as inline structural changes. Contains:
|
Element |
Description |
|---|---|
|
|
Comma/space-separated list of inline and block-level formatting elements. |
|
|
When |
|
|
Whether changes in comments are processed. |
Element: formattingElements
Type: xs:string. Default includes: b, i, u, em, strong, emphasis, dfn, code, sup, small, s, span, basefont, font, bdo, bdi, br, mark, ins, del, ruby, rt, rp, div.
Element: ignoreFormattingElements
Type: xs:boolean. When true, any element in formattingElements will not show additions,
deletions, or modifications.
Element: retainComments
Type: xs:boolean. Controls whether HTML comment changes are processed and shown in output.
Element: htmlConfiguration
Parent: parameters. Controls output styling. Contains:
|
Element |
Description |
|---|---|
|
|
Highlight colour for deleted (A) content. |
|
|
Styling for deleted (A) content. |
|
|
Highlight colour for added (B) content. |
|
|
Styling for added (B) content. |
All elements are xs:string. Default: A = red, B = green.
Element: mathmlConfiguration
Parent: parameters. Contains mathmlGranularity.
Element: mathmlGranularity
Attribute mode [enum]:
|
Value |
Description |
|---|---|
|
|
Repeats A and B MathML inputs side by side. |
|
|
Repeats inputs side by side with individual changes highlighted. |
|
|
Reports differences within MathML without duplicating inputs. |
Element: svgConfiguration
Parent: parameters. Contains:
|
Element |
Type |
Description |
|---|---|---|
|
|
|
Enable SVG comparison. |
|
|
enum |
How to display SVG changes ( |
|
|
|
Enable Z-index change representation. |
|
|
|
Markup colour for Z-index changes (default: |
|
|
|
Fall back to ADJACENT if alignment is below threshold. |
|
|
|
Fallback threshold percentage. |
|
|
|
Ignore changes smaller than tolerance value. |
|
|
|
Tolerance value (default |
Element: tableConfiguration
Parent: parameters. Contains:
|
Element |
Type |
Description |
|---|---|---|
|
|
enum |
Column matching mode: |
|
|
|
Whether to ignore HTML table column order. |
|
|
enum |
Processing for invalid tables: |
|
|
|
Whether to normalise HTML table column specification. |
|
|
enum |
Table validation strictness: |
|
|
enum |
Warning reporting: |
columnKeyingMode modes
|
Value |
Description |
|---|---|
|
|
DocumentComparator manages keying automatically (also allows user-defined column keys). |
|
|
Columns matched by position index (1-based, max defined by |
invalidTableBehaviour modes
|
Value |
Description |
|---|---|
|
|
Throw an exception. |
|
|
Propagate changes to the table level. |
|
|
Compare table content as well-formed XML. |
validationLevel modes
|
Value |
Description |
|---|---|
|
|
Known harmless invalidities do not bypass processing. |
|
|
All invalidities bypass the appropriate subsequent processing. |
warningReportMode modes
|
Value |
Description |
|---|---|
|
|
Report warnings using processing instructions ( |
|
|
Report warnings using |
|
|
Report warnings using XML comments. |