Closing tag out of order
- Input
- <a><b></a>
- Expected output
- linha 1, coluna 7: fechamento </a> não casa com <b>
Column 7 is where </a> begins.
check if xml is well formed
Paste the XML into the box and the check runs at once: if it is correct the banner turns green; if not, it gives the line, the column and the reason, with the source excerpt and a ^ marking the exact spot.
Column 7 is where </a> begins.
The second occurrence is the one flagged.
Write R&D to fix it.
Use x="1".
Wrap both in a parent element.
Drop the file on the upload area or pick it with the button. The tool detects the encoding (UTF-8, UTF-16 or the one declared in the header, such as ISO-8859-1), shows the formatted text and builds the tree. You can also paste the content. Any text editor or browser can open XML, but only here do you get formatting, a tree, search and NF-e reading in one place with nothing to install.
One that follows the XML syntax rules: a single root element, tags closed in the right order, quoted attributes and references written correctly.
No. Valid also requires obeying a schema such as XSD or DTD. The tool checks well-formedness only, which is the prerequisite for any schema validation.
Because in the XML specification a well-formedness error is fatal: after it the rest of the text cannot be interpreted safely. Fix the first one and the check moves on to the next.