Code Inspections in XML
This topic lists all DataGrip code inspections available in XML.
You can toggle specific inspections or change their severity level on the Editor | Inspections page of the Settings/Preferences Ctrl+Alt+S.
Inspection | Description | Default Severity |
---|---|---|
Deprecated elements | This inspection checks for deprecated XML elements. | Warning |
Duplicate ID | This inspection checks for duplicate "id" attributes in XML. | Error |
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 |
File path resolving in XML | Highlights unresolved file references in XML. | Error |
Redundant default attribute value assignment | This inspection checks for redundant default XML attribute value assignment. | Warning |
Unbound XML namespace prefix | This inspection checks for unbound namespace prefixes in XML. | Warning |
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 |
Unresolved ID | This inspection checks for unresolved "id" attributes in XML. | Error |
Unused XML schema declaration | Checks for unused namespace declarations and location hints in XML | Warning |
Wrong root element | This inspection checks if root tag name is the same as in <doctype>. | Error |
XML highlighting | Highlights XML validation problems in the results of batch code inspection. | Error |
XML tag empty body | Reports empty tag body. The validation works in XML / JSP / JSPX / HTML/ XHTML file types. | Warning |