I'm trying to play with the
Java XML APIs and I'm having trouble getting the import to work.
I've entered the following:
import org.w3c.dom.*;
public class XMLTest {
private Document document;
/** Creates a new instance of ReplaceText */
public XMLTest() {
}
public static void main(
String[] args) {
}
}
and get the following error:
ReplaceText.java [1:1] package org.w3c.dom does not exist
import org.w3c.dom.*;
^
I have placed a reference to the location of the dom.jar file on my class path which according to the install instructions is all I have to do.
I'm obviously missing something basic here
Les