XML parser

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tanya
    New Member
    • Jul 2006
    • 1

    #1

    XML parser

    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
Working...