- Determine what editor you want to use from the Editors section
- Determine what schema you want to use from the Schemas section
- Add the URI of the schema file (ex
<Definitions xsi:noNamespaceSchemaLocation="SCHEMA_URI" ...
)- Determine which schema file to use by matching against what XSD Version your editor supports
- If your editor does support https:// schemas right click the XSD link, pick "Copy Link"
- If your editor doesn't support https:// schemas right click the XSD link, pick "Save Link As", save the schema to disk, and construct a file
URI pointing to the schema (ex
file:///C:/Users/username/Downloads/medieval-vanilla.xsd
) - This URI,
file:///C:/.../medieval-vanila.xsd
orhttps://storage.googleapis.com/.../medieval-vanilla.xsd
, is the SCHEMA_URI.
Game | Variant | XSD 1.0 URL | XSD 1.1 URL |
---|---|---|---|
Medieval Engineers | Vanilla | XSD 1.0 | XSD 1.1 |
Medieval Engineers | Equinox Core Rails Core PAX Scripts |
XSD 1.0 | XSD 1.1 |
Space Engineers | Vanilla | XSD 1.0 | XSD 1.1 |
Editor | Requirements | XSD Version | https:// Schemas |
---|---|---|---|
Visual Studio Code | XML Extension | XSD 1.0 | ✅ |
Rider & IntelliJ | None | XSD 1.0 | ✅ |
Visual Studio | None | XSD 1.0 | ❌ |
- The game thinks my XML is valid but the validator says "One of the following {long list of element names} is expected"
- XSD 1.0 enforces a strict element order in most cases, so unless the elements in your XML file match the order in the XSD file it will give an error. If you can setup a XSD 1.1 validator this issue will go away, otherwise you can just reorder your XML file to match the schema.