40

I'm trying to view an XML file in Eclipse, but I'm not enjoying their tree structure view for the XML data. I was hoping there'd be a simple highlighted text view for it but I couldn't find it.

Closest I got was the plain text view which was nearly it.

Is there such a view? If so, where is it?

Lii
  • 11,553
  • 8
  • 64
  • 88
Kurru
  • 14,180
  • 18
  • 64
  • 84

1 Answers1

78

Look at the bottom of the editor. There should be a source tab that will give you the view you are looking for.

enter image description here

enter image description here

Nam G VU
  • 33,193
  • 69
  • 233
  • 372
Konstantin Komissarchik
  • 28,879
  • 6
  • 61
  • 61
  • 2
    In Eclipse 4.4, the XML Editor no longer highlights syntax. – Cerin Apr 26 '15 at 21:31
  • Cerin, are you sure you have XML Editor installed? Some basic Eclipse distributions don't include it. – Konstantin Komissarchik Apr 27 '15 at 14:26
  • 2
    I've been using Eclipse for years... and never knew about the "Source" tab when opening an XML. I've always had to open the XML in Notepad++ or VI to get syntax highlighting. Big thanks! – SnakeDoc Feb 14 '17 at 17:55