error - I think involving my Import Statements
Greetings,
Can you help resolve this:
My statement giving me a problem is:
Document doc = parser.build(http://......);
I get 2 different errors depending upon my Import statements:
(all of this is code from a tutorial - )
The tutorial has:
Code:
import org.jdom.JDOMException;
import org.jdom.input.SAXBuilder;
import java.io.IOException;
With just these 3 lines (of import statements) the error on the Document line is:
Cannot find symbol
Symbol class Document
Location …
I added Code:
Import org.w3c.dom.Document
and I get a different error:
Incompatible types
required: org.w3c.dom.Document
found: org.jdom.Document
Again – the tutorial only has the 3 original import statements.
Thanks
-Sparky