1

I'm working on a java project that utilizes XML files in Eclipse; however, I can't get it to open the file in XML mode. It merely shows it as a text file. I have Eclipse Indigo (which I believe is the current version). Any suggestions on how to get it to open correctly?

Note: If it makes any difference I have OS Lion and I can't view XML in Safari either.

Nosrettap
  • 10,940
  • 23
  • 85
  • 140

3 Answers3

5

Go to help->eclipse marketplace then search for xml editor, install the Rinzo XML Editor restart eclipse and you should be ready to go.

wintersolutions
  • 5,173
  • 5
  • 30
  • 51
2

Add the xml file to a project and right-click->open with->xml editor However, it automatically opens in xml editor for me. If you at any time want to see the source, at the bottom of the editor there will be a source tab and a design tab

How do I view xml in Eclipse with simple syntax highlighting?

Community
  • 1
  • 1
Sesha S
  • 253
  • 1
  • 4
  • 11
0

Have you tried Right-Click -> Open With.. ->XML Editor? If that option is not there, then some plugin is missing

Carlos Gavidia-Calderon
  • 7,145
  • 9
  • 34
  • 59