New XML file wizard and schemaLocation [message #895327] |
Thu, 12 July 2012 09:05  |
Eclipse User |
|
|
|
Hi all,
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:
<abc:configuration
xmlns:abc="http://www.mycompany.com/configuration"
xmlns:xsi="..."
xsi:schemaLocation="http://www.mycompany.com/configuration jar:file:/c:/eclipse/plugins/com.mycompany.configuration_1.0.0.201207121023.jar!/model/configuration.xsd"
>...
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,
Maxime
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05545 seconds