Search code examples
eclipsetestng-eclipse

Why my TestNG.xml file is showing syntax errors when the same project is loaded in Eclipse 2024-03 Vs. 2023-12 with the same testNG plugin


We have a nicely working Java-TestNG Maven project, which was deployed on another machine(Windows 10 instead of Windows 11) and the Eclipse is newer v2024-03 instead of 2023-12. I see the following error messages in the newer project(even though the same TestNG for Eclipse plugin is installed. I don't know whether this plugin is updated) enter image description here

enter image description here

As far as I can see, the difference between the xml files is none. Is it the version of Eclipse, which could be the culprit ? Should I install the same old 2023-12 version, instead of the latest 2024-03 Eclipse version ?


Solution

  • The first error message tells you what is wrong

    Downloading external resources is disabled.

    To allow downloading go to the Preferences and look in "XML (Wild Web Developement)".

    Enable the "Download external resources like referenced DTD, XSD" option.