Hello. I'm receiving the following exception when calling the getDocument method. We have included the proper jar file, so I'm not sure why this error is occurring. Thanks in advance for the assistance.
The specific error is:
java:85: error: incompatible types
doc = parser.getDocument();
required: org.dom4j.Document
found: org.w3c.dom.Document
1 error
The relevant code:
import org.dom4j.Document;
import org.dom4j.DocumentHelper;
import org.dom4j.Element;
import org.dom4j.Node;
import org.apache.xerces.parsers.DOMParser;
DOMParser parser = new DOMParser();
org.dom4j.Document doc;
parser.parse(new InputSource(new StringReader(s_xml)));
doc = parser.getDocument();