/xXSDHub

XSD import and include errors

xs:include combines compatible schema namespaces; xs:import references a different namespace. Load the complete trusted package and choose the entry XSD. XSDHub does not silently fetch schemaLocation URLs. A missing file and a wrong targetNamespace need different fixes.

Load every local dependency with its original path

xs:include combines compatible schema namespaces; xs:import references a different namespace. Load the complete trusted package and choose the entry XSD. XSDHub does not silently fetch schemaLocation URLs. A missing file and a wrong targetNamespace need different fixes.

Reproduced engine diagnostics and complete fixes

Original minimal examples checked on 2 November 2026. Engine wording differs; follow the cause, not a message alone.

libxml2-wasm 0.7.2

element decl. 'r', attribute 'type': The QName value 'MissingType' does not resolve to a(n) type definition.

Xerces2-J 2.12.2 / Temurin Java 21.0.13+9-LTS

src-resolve: Cannot resolve the name 'MissingType' to a(n) 'type definition' component.

lxml 6.0.2 / libxml2 2.14.6

element decl. 'r', attribute 'type': The QName value 'MissingType' does not resolve to a(n) type definition.

.NET 10.0.14 / System.Xml

Type 'MissingType' is not declared.

Before: fails

<r>ok</r>
Open broken example →

After: passes

<r>ok</r>
Open corrected example →
Complete XSD (before)
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="r" type="MissingType"/></xs:schema>
Corrected XSD
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="r" type="xs:string"/></xs:schema>

libxml2-wasm 0.7.2

The XML document '/project/schema.xsd' is not a schema document.

Xerces2-J 2.12.2 / Temurin Java 21.0.13+9-LTS

s4s-elt-schema-ns: The namespace of element 'schema' must be from the schema namespace, 'http://www.w3.org/2001/XMLSchema'.
s4s-elt-schema-ns: The namespace of element 'element' must be from the schema namespace, 'http://www.w3.org/2001/XMLSchema'.

lxml 6.0.2 / libxml2 2.14.6

The XML document 'in_memory_buffer' is not a schema document.

.NET 10.0.14 / System.Xml

The root element of a W3C XML Schema should be <schema> and its namespace should be 'http://www.w3.org/2001/XMLSchema'.

Before: fails

<r/>
Open broken example →

After: passes

<r/>
Open corrected example →
Complete XSD (before)
<schema><element name="r"/></schema>
Corrected XSD
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="r" type="xs:string"/></xs:schema>

libxml2-wasm 0.7.2

Missing schema: missing.xsd (referenced by schema.xsd). Load the complete folder or ZIP.

lxml 6.0.2 / libxml2 2.14.6

failed to load "missing.xsd": No such file or directory
Element '{http://www.w3.org/2001/XMLSchema}include': Failed to load the document 'missing.xsd' for inclusion.

Before: fails

<r/>
Open broken example →

After: passes

<r/>
Open corrected example →
Complete XSD (before)
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:include schemaLocation="missing.xsd"/><xs:element name="r"/></xs:schema>
Corrected XSD
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="r"/></xs:schema>

s4s-elt-schema-ns: the schema root must be in http://www.w3.org/2001/XMLSchema. See the reproduced namespace fixture above; this differs from the namespace of your instance document.

Repeat this check in your workflow

API, Python CLI and GitHub Actions starter are available for automation. The public API is early access; paid CI authentication and SLA are not offered. Pro: US$19/month, 25-file batches and 10 saved schemas. Team: US$49/month, 100-file batches, 100 schemas and five seats.