Simple Compile problem, XML DOM java file
I have just started reading about the XML DOM which I intend to use in some way.
I am trying to run a java file (DomEcho01.java from the java sun site) and it won't compile for me.
There seems to be problems with using the javax.xml.parsers package.
Why is this? Is there something stupidly small I am missing?
Code (Imports):
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.FactoryConfigurationError;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
Command Line errors (there are 14, all similar):
DomEcho01.java:32: cannot resolve symbol
symbol : class DocumentBuilder
location: package parsers
import javax.xml.parsers.DocumentBuilder;
^
DomEcho01.java:33: cannot resolve symbol
symbol : class DocumentBuilderFactory
location: package parsers
import javax.xml.parsers.DocumentBuilderFactory;
^

