Inspectopedia Help

Root file tag must have an 'id' attribute

Detects missing or incorrect topic IDs in XML files. Every XML topic must have the id attribute in the root <topic> tag with the value equal to the topic file name without the extension.

Locating this inspection

By ID

Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.

WrsIdMissingContainingFileInspection
Via Settings dialog

Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.

Settings or Preferences | Editor | Inspections | Writerside | Element id problems

The quick fix either adds or corrects the ID to match the topic file name.

For example, if the topic file name is some_intro.topic, then the root <topic> tag must have id="some_intro".

Availability

By default bundled with

Writerside 2024.1

Can be installed with plugin

Writerside, 2024.04.241.15989.11

Last modified: 18 June 2024