How can I ensure that an xsi:schemaLocation is serialized for my packages?
The save option XMLResource.OPTION_SCHEMA_LOCATION must be used to indicate that you want to serialize schema location information. Even when this option is used, the schema location is serialized only if the ePackage.getNsURI() is different from ePackage.eResource().getURI() to avoid useless schema locations of the form xsi:schemaLocation=”http://www.example.org/Xyz http://www.example.org/Xyz”.