We have actually XSD’s for everything. We do not yet validate against it, but this is planned for the future. If you want to use the XSD for validation in your IDE, you can either point to the XSD from a Jar file or copy the XSD to a desired location.
To validate against the XSD’s you will need to have the right namespace. Right now it will work for no namespaces also. Here’s an example of using the namespace:
In some IDE’s, like IntelliJ, you can then just associate this namespace with an XSD inside a jar in your project. This jar is already in your project if you are using any of our libs. Else, you can add the following to your dependency list:
compile 'com.enonic.xp:core-api:6.4.0'
If not you can associate it using xsi:schemaLocation:
This path/to/model.xsd is the physical location of the XSD on your file system. If you want, you could just point it to the XSD on GitHub by using the following URL https://raw.githubusercontent.com/enonic/xp/master/modules/core/core-api/src/main/resources/META-INF/xsd/model.xsd. Or for a specified tag: https://raw.githubusercontent.com/enonic/xp/v6.4.1/modules/core/core-api/src/main/resources/META-INF/xsd/model.xsd.