I often have to develop XML schemas for different XML database import procedures. It is clear that XML schemas will evolve over time or they may contain corrections, so it is important to fix the version of the schema and associate some mechanism with a specific version.
I currently have two scenarios:
An error is found in the schema, and all instances of the schema must match the fixed version.
The scheme has been updated and should be considered as preferred, but the old one should also be supported.
Finally, I came with saving version information in the schema namespace:
targetNamespace="http://schemas.company.com/Geodesy/2010/River.xsd"
When fixing the error, I fix it in the same namespace, but if I am going to update the schema, I need to create a new namespace, but with the month of update added:
targetNamespace="http://schemas.company.com/Geodesy/2010/01/River.xsd"
And if I have more than one update per month, just add another day:
targetNamespace="http://schemas.company.com/Geodesy/2010/01/17/River.xsd"
Do you know any better approach?
xml versioning xsd
Regent Jan 06 2018-10-06 16:03
source share