I’m getting a “XMLEntityScanner$(Throwable)” error when debugging in Eclipse on this line:
DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
Here is the full code:
DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
dbFactory.setValidating(true);
dbFactory.setIgnoringElementContentWhitespace(true);
DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
Document doc = dBuilder.parse(products); // load xml file
doc.getDocumentElement().normalize();
I’m not sure why I’m getting this. I’m using this tutorial as reference.
http://www.mkyong.com/java/how-to-read-xml-file-in-java-dom-parser/
Turns out it wasn’t an error at all, I’m just unfamiliar with Eclipse. It’s just an error that it can’t find the source for the function during debug.