Well-formed first, then complete

Is your XML built
the way it should be

Paste an XML document and, if you like, a few structure rules. The page first checks that the tags nest and close properly, with the line and column of the first error, then tests your rules: required children, required attributes, unique ids and depth.

$9.99a month · everything on Caveat

Cancel anytime. How plans and refunds work

Included with Caveat Plus ($9.99 a month or $99.90 a year), Caveat Family (up to 5 people, $14.99 a month) and Caveat Teams (25 people, $199 a month). Anything you bought before stays yours.

Enter your figures and read the result

Paste the XML and the rules. The worked example is an invented gradebook with two rule problems. Nothing leaves this browser.

Loading XML Structure Validator. If nothing appears, turn on JavaScript.

What you get

Teaching · For TeachersIncluded with Caveat Plus

What you finish with
A worked-out result for your own entry (a headline figure, tiles, tables and a drawing where one helps), as a printout, a spreadsheet (.csv) or a saved file.
Who it is for
Students learning markup, teachers of computing and data classes, and school staff who handle exports in XML.
Format
Browser tool for a phone, tablet or computer: type or paste, the result updates as you type. Print, spreadsheet (.csv), save to a file and open it again.
Access
Included with Caveat Plus ($9.99 a month) and Caveat Teams. It opens once you are signed in, on every device. Anything you bought before stays yours.
Where it lives
The For Teachers space in Caveat Teaching.
Support
Questions about access, an order or a correction: team@caveatacademic.com.

How to use it

  1. Load the worked example to see how it reads, or start with your own entry.
  2. Type or paste into the fields; the result updates as you type.
  3. Read the headline, the tiles and the tables.
  4. Try a second case from the buttons above the fields.
  5. Print the result, download a spreadsheet or save the entry to a file.

Check an XML file

How it works

The worked example from the pasted XML to the two rule problems.

Well-formed is not valid

A parser can say that the markup is built correctly. Whether the file holds what a system expects is a second question, answered here by simple rules and in larger projects by a schema.

Why the first error only

One missing closing tag can make everything after it look wrong. Fixing the first error and checking again is faster than reading a long list of knock-on messages.

Sources

  1. Bray, T., Paoli, J., Sperberg-McQueen, C. M., Maler, E., & Yergeau, F. (Eds.). Extensible Markup Language (XML) 1.0 (Fifth Edition). W3C Recommendation.
  2. Mozilla Developer Network. XML introduction, developer.mozilla.org.

The worked examples are invented for illustration. What you type is saved only in this browser and is never sent to Caveat. Support: team@caveatacademic.com.

Written with AI, then checked before it is published. How we checkFound a mistake? Report it and we fix it, or refund you.Cancel anytime.