{{ summaryTitle }}
{{ summaryValue }}

{{ summaryLine }}

Verdict{{ resultsReady ? verdictLabel : 'Waiting' }} ProfileXSD 1.0 Core Source{{ resultsReady ? 'Preserved' : 'Waiting' }}
XML Schema validation sources
One namespace-aware XML document, up to 200,000 characters.
Local only
{{ xmlFileStatus || 'Drop one local XML or text file onto the editor.' }}
One XSD 1.0 schema, up to 200,000 characters. URI, file, and network resolution stay blocked.
XSD 1.0 Core
{{ xsdFileStatus || 'Drop one local XSD, XML, or text file onto the editor.' }}
Filters the ledger and its exports. Choose All findings for the full ledger.
Optional in-memory schemas. Wrap each XSD with --- schema: common.xsd | namespace: urn:common --- and --- end schema ---. Use (none) for no target namespace.
{{ reviewExportStatus }}
CheckResultDecision / next actionCopy
{{ row.label }}{{ row.value }}{{ row.decision }}
{{ chartExportStatus }}
Chart unavailable.
{{ tableExportStatus }}
XML Schema findings with source, path, rule, severity, explanation, and next action
Source and pathRuleSeverityFindingNext actionCopy
{{ finding.source }} · {{ finding.source_position }}{{ finding.path }}{{ finding.rule }}{{ finding.constraint }}{{ finding.severity }}{{ finding.message }}{{ finding.action }}
{{ computation.values.finding_count ? `No findings in this view; ${computation.values.finding_count} in the full report.` : 'No findings for the supplied XML and XSD.' }}

The report reached the 200-finding limit. Fix the shown findings, then validate the updated source.

Similar tools

Well-formed XML follows the basic syntax of matching tags, quoted attributes, and one document element. Schema validity asks a narrower business question: does that XML also match the elements, attributes, datatypes, namespaces, and content order declared by an XML Schema Definition (XSD)? A document can be well formed and still fail its schema.

Namespaces are part of an element’s identity. <order xmlns="urn:sales"> and <order xmlns="urn:archive"> have the same local name but represent different expanded names. Many apparent “element not declared” errors are namespace mismatches rather than spelling mistakes.

Instance document
The XML data being checked.
Primary schema
The XSD that declares the expected document root and its main namespace.
Content model
The allowed child elements, order, alternatives, and occurrence counts.
Facet
A restriction on a simple value, such as an enumeration, length, or inclusive or exclusive numeric bound.

Full XSD processors can resolve imported schemas and support a large language of type derivation, wildcards, identity constraints, regular-expression facets, and newer XSD 1.1 features. A bounded local validator should say when a construct is outside its profile instead of silently treating unexamined content as conforming.

How to Use This Tool:

Supply the instance and its primary schema together, then add only the in-memory schemas that an explicit include or import needs.

  1. Paste or load one XML document up to 200,000 characters.
  2. Paste or load the Primary XSD. Its root must be an XSD schema element, and the expected document root must be declared globally.
  3. When the primary XSD uses include or import, open Advanced and add each dependency as a named in-memory schema block. The block key must exactly match its safe relative schemaLocation. Every supplied block must be reachable from the primary through explicit include/import relationships, including transitive dependencies. A disconnected block is unsupported; connect it explicitly or remove it.
  4. Read the verdict before filtering findings. Unsupported or security findings mean the validator could not make a complete conformance claim under its XSD 1.0 Core profile.
  5. Follow each finding’s source, line, column, XML path, rule, and next action. Correct schema errors before instance errors because an invalid or unsupported schema blocks document validation.
  6. Validate again after every schema or XML change. The Finding view filters the visible finding ledger and its copied or downloaded CSV and DOCX exports. Choose All findings to hand off the full ledger. The canonical verdict and total counts remain unchanged.

Interpreting Results:

  • Conforms means the XML is well formed and no finding was produced within the supported XSD 1.0 Core profile.
  • Does not conform means a supported schema or instance rule failed, such as a wrong namespace, missing required child, invalid datatype, or undeclared attribute.
  • Unsupported means at least one schema feature or security-sensitive construct prevented a complete validation. It must not be read as either valid or invalid under a full XSD processor.

Technical Details:

Validation begins with secure, namespace-aware parsing of XML and XSD source documents under XML 1.0. An XML 1.1 or other recognized non-1.0 version declaration is unsupported and prevents conformance. The schema set is checked and compiled before the instance is examined. This order prevents an invalid or partly unsupported schema from producing false confidence about the document.

Mechanism Core

  1. Reject document type declarations, entity declarations, parameter-entity substitution, XInclude, unsafe schema locations, and malformed XML before resource resolution.
  2. Parse the primary XSD and as many as seven additional in-memory schemas, checking target namespaces and exact include/import relationships.
  3. Report unsupported XSD constructs, schema attributes, and placements explicitly, including multiple or misplaced derivations or content models. A recognized construct name alone does not establish support. Then compile supported global elements, simple types, complex types, attributes, and content particles.
  4. Require qualified names (QNames) in type, base, and ref to be nonempty and resolvable in the supplied namespace/schema context. Empty or unresolved QNames produce unsupported profile findings and prevent conformance.
  5. Match the instance root by expanded name: namespace plus local name.
  6. Validate element and attribute declarations, required or prohibited attributes, fixed values, simple datatypes and facets, child order, choices, all-groups, and occurrence counts. Simple-typed elements reject undeclared ordinary attributes as instance errors.
  7. Return a conformance verdict only when no error, unsupported, or security finding remains.
Supported and unsupported XSD 1.0 Core features
Supported coreReported as unsupported
Global and local elements, inline and named simple or complex types, and local attributes.Attribute groups, named model groups, wildcards, referenced global attributes, and recursive types or elements.
simpleContent extension of a supported simple base, with supported attributes.simpleContent restriction or extension of a non-simple base.
complexContent extension of a supported element-only complex base.complexContent restriction, simple-content bases, or adding content to an inherited all group.
Flat authored sequence, choice, and all particles with distinct expanded child names. Sequence and all groups occur exactly once. Each choice branch is one element with occurrence 1..1; all-member occurrence limits are within 0..1. Element minOccurs/maxOccurs remain supported within the profile limits.Nested authored particles, optional or repeated sequence/all groups, optional or repeated choice branches, and repeated child names. Occurrence counts above 5,000, mixed content, substitution groups, abstract or nillable elements.
Simple restrictions using enumeration, length, whitespace, and inclusive or exclusive bounds. Facets must remain compatible with inherited constraints and narrow rather than widen them.Conflicting or widened inherited facets, which prevent conformance. Pattern, list, and union simple types; identity constraints such as key, keyref, and unique.
Selected XSD 1.0 built-in string, numeric, date, and binary datatypes.xs:anyURI, xs:ID, and xs:IDREF produce unsupported findings and prevent conformance. XSD 1.1 assertions, type alternatives, open content, override, and other unsupported built-in datatypes.
In-memory include and import through safe relative keys.Network URLs, file paths, absolute paths, parent traversal, and unresolved schema locations.

Instance xsi:type and xsi:nil are unsupported and prevent conformance regardless of their supplied values.

Inclusive facets accept a value equal to the boundary; exclusive facets require the value to be strictly above or below it. Integer subtypes enforce their XSD ranges, dates use the supported lexical calendar form, and element-only complex content rejects non-whitespace text.

Security and Limits:

The XML and XSD sources remain inert text in the browser. External resource access is disabled: the validator does not follow network URLs, local file paths, external entities, XInclude, or schema locations that are not matched to supplied in-memory schema blocks. Instance xsi:schemaLocation and xsi:noNamespaceSchemaLocation hints are permitted with valid token structure: namespace/location pairs for the former, one location for the latter. These hints remain inert and never load missing schemas; explicitly supplied in-memory schemas govern validation.

XML Schema validation limits
ResourceLimit
XML document200,000 characters
Primary XSD200,000 characters
Additional schema bundle300,000 characters
Schema documents8 total
Nodes per document and maximum depth5,000 nodes and 64 levels
Finding ledger200 findings