SMALL TOOL. LESS GUESSWORK.

Validate XML against XSD.
Find the mismatch.

A missing field can stop your file from being imported. Compare the file with its rules. The result shows where they differ.

New to this? Explained in 30 seconds

An XSD file sets the rules for an XML file.

A missing field or wrong order can cause rejection.

This tool checks the file against the selected rules.

Correct the reported fields and check again before sending.

⌘Default checks run in your browser. Server checks require permission.
Local validation.
Optional saved schema library.
How it works
  1. Drop your file here
  2. See what is wrong and where
  3. Fix it and check again
One click loads and checks a fictional example in your browser

Practise fixing six file errors →

</>order.xml
or drop your file here
UTF-8 · max. 10 MB
{ }order.xsd
or drop your file here
UTF-8 · max. 10 MB
XSD 1.0 local · optional advanced engines
or drop your file here
UTF-8 · max. 10 MB
▣ Private by design ⌘ / Ctrl + Enter to validate
↳
READY WHEN YOU ARE

Good data starts with a quick check.

Load an example or add your own file and rules. Run the check and correct the reported fields.

    Check your month’s files together and get alerts when the rules change.Compare plans
    How to fill in · XSD validator
    Download PDF · English

    Before you start

    Keep the original XML export. For an invoice, use the XML from your accounting software, not a scan. Have the recipient’s format instructions ready. For an XSD check, also obtain the matching schema and any files it includes.

    Steps

    1. Open the XSD validator and keep XML + XSD selected.
    2. Choose XSD 1.0 unless your supplier specifies XSD 1.1 or Schematron. Those choices are under Advanced engines & multi-file projects on the English page. Read the permission request before continuing.
    3. Paste or open the XML and the XSD schema.
    4. Click Validate XML.
    5. Read the line number and message first, then any rule ID, element and value shown. For XML syntax, the message may have no rule ID. Follow the linked error guide, correct the source and run Validate XML again.

    Three errors to check first

    • cvc-datatype-valid: Use the value format required by the XSD: write 125.50 in a decimal field, without a currency symbol or a comma.
    • cvc-elt.1.a: Compare the root name and namespace with the schema’s declaration. Obtain the matching schema version from the sender or recipient.
    • cvc-complex-type.2.4.a: Put required elements in the order defined by the XSD. Check whether an earlier element is missing before changing the highlighted one.

    An XML check finds broken document syntax. An XSD check tests the structure and values against the schema you supply. For country invoice rules, use the matching country validator under E-invoicing and keep the recipient’s acceptance response.

    These screenshots use fictional invoices. Controls are in English; Russian and Ukrainian editions use their existing translated pages.

    Video walkthrough

    How to check XML / XSD · 1:09Recorded on the live site with a fictional sample invoice. Our own product; the voice is made with AI.

    More tools

    Advanced engines & multi-file projectsUse schemas you are allowed to process. Include their linked files and required notices. Schema permissions and preparation.
    Generate example XML
    Find & replace
    Lexical repair
    Details

    Check a document against the structure and data types defined by your XSD. Get specific diagnostics without uploading your XML.

    Your data stays yours.

    YOUR FILES, YOUR CHOICE

    Choose how to check your file.

    Start with the standard file rules check. Choose an advanced check if your recipient needs other rules. Advanced checks need permission before sending your document. You can save rules projects on this device or in your Pro or Team workspace. Compare the checks and file limits

    GROW WITH YOUR WORKFLOW

    One file today.
    Your whole team tomorrow.

    Check one file free. For repeated work, compare plans for several files, saved rules and shared team work.

    Free · Pro from US$9

    More flow. Less repetition.

    Pro from US$9/month. Team from US$29/month.
    Save two months with annual billing.

    Compare plans

    What checking the file rules adds

    An XSD is a file containing rules for other files. It lists required fields, their order and which values are allowed. For example, a quantity may need a number. Writing “two” is readable text but would fail that rule.

    How to check your file against its rules

    Open your data file in the left editor and its rules file on the right. Keep XML + XSD selected and choose Validate XML. Use the rules version required by the recipient. The included order example shows both a working file and a deliberate mistake.

    Full field names and their order matter

    Two short field names can look the same but have different full names. Compare the full names in your file and its rules. Check the field order too. A missing-field message may mean the field is absent or that another field appears too early.

    Check files automatically while you work

    Developers can add automatic file checks to a project. The setup guide explains which checks run on their own systems and which use the API. XSDHub GitHub Action Copy the CI example

    What this beta supports

    How do I check a file against the recipient’s rules?

    Open your file and all the rules files supplied by the recipient. Choose Validate XML. The check compares required fields, their order and allowed value types. Follow the example to compare a working file with a deliberate error. Follow the XML and XSD example

    Does a passing file prove that all its rules are correct?

    The rules file must be readable before the data can be checked. A passing result covers those rules only. It does not prove that they include every requirement from your customer. Compare them with the customer’s instructions and test working and faulty examples.

    YOUR NEXT STEP

    Your next check

    Validate XML syntax in your browser, find malformed tags and read errors with line numbers. Free, no document uploads. UTF-8 XML files up to 10 MB.

    Open XML validator

    Additional checks

    Check identifiers, code lists and document totals locally. Each result names its rule and source.

    The local check sends no document or identifier to a register.

    Certificate checks use authenticated EU trust list 398, including France 184 and Italy 225. Ask your signature provider to verify the signed document, revocation and qualified status before relying on the signature. Certificate check details.

    Identifier
    Code list
    Check document fields
    or drop your file here
    UTF-8 · max. 10 MB
    Optional official register lookup

    Identifier

    Offline certificate chain on this server

    The report includes source paths, amounts and certificate fingerprints. Review it before sharing.

    Missing, empty or repeated fields

    What happens when the rules do not state how often a field may appear?

    When neither limit is stated, the field must appear exactly once. The rules can also allow a missing field or repeated fields. An empty field still counts as present. Its value must meet the field’s own requirements.

    Compare the complete examples of missing, empty and repeated fields. complete minOccurs and maxOccurs examples

    Technical details

    See validation errors with line numbers where available. Correct your data, check again, and export a JSON result for your records.

    Check your XML against an XSD 1.0 schema, or choose XSD 1.1 or Schematron for other rules. Give permission before sending a document for an advanced check. Save schema projects on this device or in your Pro or Team workspace. Compare the checks and file limits.

    XML Schema Definition, or XSD, describes the structure a class of XML documents is expected to follow. A schema can require an attribute, restrict an element to a number, define the order of children and limit how many times an item appears. Well-formed XML can still fail its schema: <quantity>two</quantity> is valid XML syntax but fails when quantity is defined as xs:positiveInteger.

    Open or paste your XML in the left editor and your XSD in the right editor. Keep XML + XSD selected, then run Validate XML. Use the exact schema version required by the system receiving the document. Start with the included order example; the invalid example deliberately puts text in numeric fields so you can see the resulting diagnostics.

    An element called order in a namespace is different from an order element with no namespace. Compare the XML namespace with the schema targetNamespace before renaming elements. For xs:sequence, child elements must also appear in the declared order. Missing child element errors can therefore point to either an absent field or an unexpected field appearing too early.

    Open your XML and the complete XSD supplied by your recipient, then choose Validate XML. The result checks required fields, element order and data types against that schema. Follow the XML and XSD example to try a passing document and a deliberate error.

    The schema must load successfully before a document can be checked. A passing document shows that it meets that schema; it does not prove that the schema describes every business requirement. Compare the schema with the recipient’s specification and test both accepted and rejected examples.

    Both attributes default to 1 when omitted from an element declaration inside a content model. Set minOccurs="0" to allow absence or maxOccurs="unbounded" to allow repetition without a fixed upper count. An empty element still counts as one occurrence and must satisfy its value type.

    THE SHORT VERSION

    A little structure.
    A lot less debugging.

    01

    Bring your XML

    Paste a document or open a UTF-8 file. Start with the included examples to see what valid and invalid data look like.

    02

    Add the file rules

    An XSD is the rules file your recipient expects. It sets required fields, their order and the kind of values allowed. For broken labels only, choose XML syntax only.

    03

    Follow the feedback

    Read the error and its line number when available. Correct the data and check again. Download the result for your records.

    What this checks

    • Checks XML syntax and your complete XSD: required fields, element order and data types.
    • Choose advanced checks when your schema needs XSD 1.1 or additional business rules.

    What this does not check

    • Rules outside your schema: add the recipient’s complete XSD or your business rules in the XML workbench, then rerun the check.

    Rules and schema references: W3C · XML 1.0 Fifth Edition; W3C · XSD 1.0 Second Edition. Check the result for the exact version used.

    Rules and coverage in detail →

    XML

    A text file with labelled fields, such as an invoice amount. Your software makes it for another computer to read.

    Read the full definition
    XSD

    A file that sets the rules for an XML file. It lists required fields and their order.

    Read the full definition
    Schema

    The agreed structure of a file, like a form with fixed boxes.

    Read the full definition

    Search

    File rejected? Find the error and how to fix it.

    Enter an error code or topic.