PhpStorm 2019.3 Help

Code Inspections in XML

This topic lists all PhpStorm code inspections available in XML.

You can toggle specific inspections or change their severity level on the Editor | Inspections page of PhpStorm settings Ctrl+Alt+S.

Inspection

Description

Default Severity

Unresolved DTD reference

Checks consistency of DTD specific references, e.g. references to XML entity or to DTD element declaration.The validation works in DTD or XML file types.

Error Error
Duplicate ID

This inspection checks for duplicate "id" attributes in XML.

Error Error
Unbound XML namespace prefix

This inspection checks for unbound namespace prefixes in XML.

Warning Warning
File path resolving in XML

Highlights unresolved file references in XML.

Error Error
Unresolved ID

This inspection checks for unresolved "id" attributes in XML.

Error Error
Wrong root element

This inspection checks if root tag name is the same as in <doctype>.

Error Error
XML highlighting

Highlights XML validation problems in the results of batch code inspection.

Error Error
Redundant default attribute value assignment

This inspection checks for redundant default XML attribute value assignment.

Warning Warning
File does not pass external validation

Thoroughly checks XML files for DTD / schema compliance using Xerces validator.The validation works in XML or XHTML file types.

Error Error
Deprecated elements

This inspection checks for deprecated XML elements.

The elements can be marked by XML comment or documentation tag with text "deprecated".

Warning Warning
XML tag empty body

Reports empty tag body.The validation works in XML / JSP / JSPX / HTML/ XHTML file types.

Warning Warning
Unused XML schema declaration

Checks for unused namespace declarations and location hints in XML

Warning Warning
Last modified: 10 February 2020