title: XML-api.jar and org.xml.sax classes having issues with JAVA 11
body: <p>[![enter image description here][1]][1]I am getting compilation error for classes refer to  org.xml.sax and xml-apis using Eclipse 2019-03 and OpenJDK 11. I have deleted any maven dependency to xml-apis though it still shows in Maven repository and listed in Maven dependecies. I have set Maven dependencies before JDK in Order &amp; export of project build path and vice versa but with no hope. </p>
  
  <pre><code>import org.xml.sax.*;
  import org.xml.sax.ext.*;
  import org.xml.sax.helpers.XMLReaderFactory;
  import org.xml.sax.helpers.DefaultHandler;
  </code></pre>
  
  <p>I had to add the update here because of comment limited length:</p>
  
  <p>Yes, I did checked Maven dependency hierarchy and found that Maven dependency </p>
  
  <pre><code>            &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-annotations&lt;/artifactId&gt;
              &lt;version&gt;3.5.6-Final&lt;/version&gt;
          &lt;/dependency&gt; --&gt; AND &lt;!-- &lt;dependency&gt;
              &lt;groupId&gt;xerces&lt;/groupId&gt;
              &lt;artifactId&gt;xercesImpl&lt;/artifactId&gt;
              &lt;version&gt;2.9.1&lt;/version&gt;
          &lt;/dependency&gt; --&gt; ```
  includes xml-apis, I have commented that out both dependencies, but then I got compilation error to a class that refers to "org.apache.xerces.parsers.DOMParser" that I have to uncomment "xerces" dependency again and of course same problem happening because JDK have the classpath for java.xml which includes "org.w3.dom" and "rg.xml.sax"
  [![enter image description here][2]][2]
  
  [![enter image description here][1]][1]
  
  
    [1]: https://i.stack.imgur.com/m1li4.jpg
  </code></pre>