Eclipse XSD editor

2019-03-09 02:08发布

问题:

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:

Indigo - http://download.eclipse.org/releases/indigo

Select:

Web, XML, Java EE and OSGi Enterprise Development

And then:

Eclipse XML Editors and Tools



回答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.