|New XML file wizard and schemaLocation [message #895327]
||Thu, 12 July 2012 09:05
| Maxime Jeanmart
Registered: November 2010
Our developers are using the WTP new XML file wizard to create their XML files. In the wizard, they select XSDs from the XML catalog to get validation and content assistance. These XSDs are declared in eclipse plugins we provide (extension point).
The file generated by the wizard is like that:
The problem is that the schema location expressed this way is no portable at all
- it includes the complete jar file name with version and qualifier.
- it includes the eclipse installation path
Because of that, validation and content assist doesn't work anymore if we update the plugins or change the eclipse installation path. The workaround is to remove the schemaLocation entry or replace the jar URI by a platform URI manually, but we don't find this very user friendly since developers create dozens of xml files per day.
Is there any way to impact the way the XML file is generated?
Thanks for any help you could provide,
Powered by FUDForum
. Page generated in 0.01874 seconds