
September 30th, 2003, 05:04 PM
|
|
Junior Member
|
|
Join Date: Sep 2003
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Loading XML into Java classes
Hi. Can anyone help? My friend is doing an honours project for university and is really struggling and I don't like to see her so stressed!
She is trying to implement XML using Java and has read all the notes, tutorials and everything but keeps getting exceptions when trying to load an XML file
Hopefully it's something simple but just hard to pick up.
Using w3c packages and DocumentBuilderFactory she gets an exception on xmlDoc = db.parse ( file );
Unfortunately she couldn't tell me what exception it is.
Is it to do with how she creates the file ( file = new File (filename); ) Does the full path need to be included when creating files?
Or can it be due to conflicting versions or something like that.
Basically I'm looking for anyone who is really clued up on this sort of stuff, if you can help or don't mind answering any questions based on XML and Java please can help out! Thanks!
|