This repository hosts schemas used to validate XML files for the game RimWorld.
It's intended to be used when creating mods for RimWorld.
- Setup your IDE, editor, terminal, whatever... to reference the catalog files
catalog.xml
in this repository.
(If someone know how to reference a GitHub URL as a catalog in Visual Studio Code, please let me know.) - Add the corresponding namespace (
xmlns
) to the XML node you want to validate.
Node | Namespace | File |
---|---|---|
ModMetaData | rimworld.schemas.modMetaData | ./schemas/ModMetaData.xsd |
LoadFolders | rimworld.schemas.loadFolders | ./schemas/LoadFolders.xsd |
You can contribute to this project by submitting a pull request.
Please ensure that your pull request follows the guidelines listed below.
- Schema files should use the
.xsd
extension:
To keep things consistent, all schema files should use the.xsd
extension. - One schema per file:
Each schema should be in its own file. The filename should match the schema name. - One node per schema:
Each schema should validate one node. The node name should match the schema name. - One namespace per schema:
Each schema should have its own namespace. The namespace should match the schema name. - Schema namespaces should be prefixed with
rimworld.schemas
:
This is to avoid conflicts with other schemas. - Schema files should be placed in the
schemas
directory:
This is to avoid cluttering the root directory. - Schema files should be added to the
catalog.xml
file:
This is to ensure that the schema files are included in the catalog. - Keep the catalog file sorted alphabetically:
This is to make it easier to find a specific schema.
For reporting bugs or suggesting features, please open an issue.
-
Usage Limitations: This project is intended for use with the game RimWorld.
-
No Warranty: This project is provided "as is", without warranty of any kind. Use at your own risk.
-
Not Affiliated: This project is not officially affiliated with, endorsed by, or connected to the creators of RimWorld or Ludeon Studios. All product names, logos, and brands are property of their respective owners.
-
Updates and Maintenance: This project is maintained on a voluntary basis. As such, updates and bugfixes may not be immediate.
Please ensure you understand these disclaimers before using the project.