Hi,
I'm trying to use the DocumentBuilder parser to read XML file but unfortunately the following code doesn't work :
DocumentBuilder Factory dbf = DocumentBuilder Factory.newInst ance();
DocumentBuilder docBuilder = dbf.newDocument Builder();
Document document = docBuilder.pars e(new File("gradesExa mple.xml"));
document = null, and I cant figure out why??? When I take this code out of my project it works fine but within the project it doesn't.
I'm new at this and at this point a little lost.
Can someone please help?
Thanks a lot
Tanya
I'm trying to use the DocumentBuilder parser to read XML file but unfortunately the following code doesn't work :
DocumentBuilder Factory dbf = DocumentBuilder Factory.newInst ance();
DocumentBuilder docBuilder = dbf.newDocument Builder();
Document document = docBuilder.pars e(new File("gradesExa mple.xml"));
document = null, and I cant figure out why??? When I take this code out of my project it works fine but within the project it doesn't.
I'm new at this and at this point a little lost.
Can someone please help?
Thanks a lot
Tanya