posted 20 years ago
Hi all,
I have just started an XML tutorial and I am trying to compile an example on using the DOMParser class. However I get a "package org.apache.xerces.parsers does not exist" when I try to import the package:
import org.apache.xerces.parsers.DOMParser;
and a "cannot resolve symbol" error when I try to create a new DOMParser:
DOMParser parser = new DOMParser();
After trying ggogle for a few hours the best I could find was to add "xercesImpl.jar" and "xmlParserAPIs.jar" to my classpath setting which I have done a number of times and restarted the machine each time - no luck. I definitely have the DOMParser.java and accompanying files under the following directory structure:
C:JBuilder9/extras/xerces/src/org/apache/parsers
What do I need to do to make this work? Do I need to change my import statement or move the xerces folder from "extras" into the main jdk1.4/src/org/apache folder? I am truly stuck on this and would greatly appreciate any help.
Thanks in advance,
Sean.