Java - DocumentBuilder Throws Exception On Creation

CeteZenia

New Member
I'm getting a "XMLEntityScanner$(Throwable)" error when debugging in Eclipse on this line: DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();Here is the full code:\[code\]DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();dbFactory.setValidating(true);dbFactory.setIgnoringElementContentWhitespace(true);DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();Document doc = dBuilder.parse(products); // load xml filedoc.getDocumentElement().normalize();\[/code\]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/
 
Back
Top