Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij top level element is not completed

In Intellij idea 12.1.4. Spring context configuration shows error for multiple file locations as Top level element is not completed @ContextConfiguration(locations= {"classpath:sampleWebService-test.xml"})

How would i solve this?

like image 786
jackyesind Avatar asked Jan 13 '23 19:01

jackyesind


1 Answers

I had something similar happen to be in one of my XML files in IntelliJ 13.1.4. Somehow, I ended up with a situation where my file had language injection configured. I fixed this by:

  1. Alt + Enter - Show intention actions and quick-fixes
  2. Select Un-inject Language/Reference
like image 109
mkobit Avatar answered Jan 17 '23 17:01

mkobit