I am unable to import org.w3c.dom.NodeList package to Eclipse. It is showing
The package org.w3c.dom is accessible from more than one mo
In my case, it was caused by combining the usage of:
JDK 11dom4j 2.1.3 libraryAs pointed out by others, the root cause is that dom4j and its dependencies (e.g., pull-parser) use some packages names (javax.xml.parsers, org.w3c.dom) that have been used by the JDK.
I had to remove dom4j to solve the problem. Just use JDK's own XML api.