Eclipse XSD editor

微笑、不失礼 提交于 2019-12-03 04:17:02

问题


How do you launch or install the Eclipse XSD editor?

According to this it seems it should work out-of-the-box. I created the XMLExamples project and when I open Catalogue.xsd Eclipse treats it as a text file. If I choose Open With > Other... there's no XSD editor on the list.

I'm using Eclipse Indigo (3.7) on Mac OS X Lion.


回答1:


Apparently the XSD editor wasn't included in my package (Eclipse IDE for Java Developers). I added it using:

Help > Install New Software...

Work with (enter your Eclipse version, here Photon):

Photon - http://download.eclipse.org/releases/photon

Filter by "XML" - as "XSD" wouldn't return the XSD editor (eventually untick "Hide items that are already installed" in case it's already installed):

Web, XML, Java EE and OSGi Enterprise Development

And then:

Eclipse XML Editors and Tools

Example with Photon:




回答2:


Which Eclipse package did you install? The XSD editor isn't included with all of them. If you click on "details" for any package, you can see the included features. The one you're looking for is org.eclipse.wst.xml_ui.feature.




回答3:


You can go alternatively to eclipse market place (Help>Eclipse Market place) and search for XSD Editor, you will see the one provided by The eclipse foundation which will be like the following. I already have it installed, so it is asking me to update/uninstall. If you have it as well, then it will show you the same screenshot.



来源:https://stackoverflow.com/questions/7386336/eclipse-xsd-editor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!