Skip to main content
Skip table of contents

Inserting "Heading" element results in XML issues

Issue description

Occasionally you might want to add italicised, left-aligned Headings between lower-level provisions (e.g., between Paragraph (1) or Paragraph (a) elements). This is unconventional but Lawmaker does allow you to do this.

In the Content Creation Assistant (CCA), Lawmaker offers the option to add a Heading element between provisions.

However, if you insert these the ‘normal’ way, i.e., by opening the CCA whilst your cursor is in the provision that you want the Heading below, then this triggers an XML warning.

image-20260122-115559.png

Example of a Heading which triggers an XML warning.

Specifically, what has happened is that the Heading has been inserted inside the previous provision, rather than at the start of the next one.

XML warnings are problematic and should be resolved before you submit your document to The National Archives.

Workaround

It is still possible to insert these Headings without an XML warning, but it involves an unintuitive approach.

Please do the following:

  1. Find the provision which you want the heading to be above (not below).

  2. Click just on the left of the number of that provision so your cursor is immediately to the left (e.g., just before the opening bracket in (3) in the example screenshot below).
    A green popup should say [previous provision] | Num.

  3. Press Enter > Heading.

image-20260122-115945.png

Cursor location for step 2. above

The Heading should appear above the provision without any XML warning.

If you struggle with the above, seeAdding a heading before a subsection or paragraph for more detailed steps to get the same result.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.