valid-xml-data
Overview
This rule belongs to the xml-validation
ruleset and states that:
An XML data must start and terminate appropriately. It must follow all standards defined in the official W3C specification.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Blocking |
Message | Provided XML data is invalid. |
Code | XML_V001 |
Type | Validation |
Rule System | Syntax |
Broad Category | XML Data |
Tags | xml preliminary checks validation data |
Suggested Fixes
- Make sure that all XML tags are opened and closed correctly.
- Make sure there are no less or extra XML tags.
- Ensure that XML nodes are assigned valid names as per the W3 standards.
- Ensure that XML attributes follow the correct syntax.
- Ensure that all XML namespace prefixes have a declaration.