在eclipse中写了如下代码:
public class JAXPSample{
private string filename = “books。xml”;
private Document doc = null;
public static void main (String【】 args){
JAXPSample application = new JAXPSample(); }}
提示说:Document cannot be resolved to a type。
本人初学者,希望知道的能够指点一二。谢谢!!!
public class JAXPSample{
private string filename = “books。xml”;
private Document doc = null;
public static void main (String【】 args){
JAXPSample application = new JAXPSample(); }}
提示说:Document cannot be resolved to a type。
本人初学者,希望知道的能够指点一二。谢谢!!!
但是我还是不知道怎么样添加是对的。import javax.swing.text.Document 和 import org.w3c.dom.Document 好像都是错的。