24

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.

hpique
  • 119,096
  • 131
  • 338
  • 476

3 Answers3

48

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:

enter image description here

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
hpique
  • 119,096
  • 131
  • 338
  • 476
  • 1
    The Java EE stuff is included in the "Java EE" download of Eclipse. – Thorbjørn Ravn Andersen Sep 16 '13 at 19:25
  • 1
    Even Eclipse Luna for Java Developer doesn't come up with XSD Editor, I went to Install New Software -> Selected http://download.eclipse.org/releases/luna and then from the displayed list I selected XML Editor (It is inside Web,XML,Java EE and OSGI) – mprabhat Jul 10 '14 at 18:22
  • This *almost* still works. I added it today by selecting `all available sites` and then using the filter to search for `xsd`. I was then able to install an *XSD Manager* – sidonaldson Mar 31 '16 at 13:34
  • This works great. I'm wondering if there is a way to search Eclipse when you have an XSD open. It doesn't seem to search. – Brian T Hannan Sep 21 '16 at 20:47
7

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.

Barend
  • 17,296
  • 2
  • 61
  • 80
  • 3
    +1 This pointed me in the right direction. I had installed Eclipse IDE for Java Developers. However, the package is org.eclipse.wst.xsl.feature. – hpique Sep 12 '11 at 13:43
2

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.

enter image description here

Zeus
  • 6,386
  • 6
  • 54
  • 89