Search code examples
javaxmleclipsehibernatemaven

Why XML is not showing in usual manner in Eclipse IDE?


Created hibernateCfg.xml manually in eclipse and it is not showing up in usual script format instead shown a tabular form with columns as "node" and "version".How to resolve it ?

I was expecting regular format usually we see for other java files ...


Solution

  • This is because you opened it with XML editor. To resolve this follow these steps:

    1. Locate the XML file - in package explorer in Eclipse IDE only Window > Show View > Package explorer.
    2. Right click on the XML file.
    3. Select Open With as Text Editor.