This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes an Exception Occurs ??  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "an Exception Occurs ??  " Watch "an Exception Occurs ??  " New topic
Author

an Exception Occurs ??

omar bili
Ranch Hand

Joined: Aug 13, 2004
Posts: 177
Hi i am using the JDOM to read an XML File in JBuilderX
all is ok, but when i am using the jdk1.4 and run it form the Dos
an Exception occurs:
org.apache.xerces.parsers.DOMParser: org.apache.xerces.parsers.DOMParser

this is the Code:
DOMBuilder builder = new DOMBuilder(false);
Document doc = builder.build(new File("i:/XMLTest.xml"));

Regards
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
an Exception occurs:
org.apache.xerces.parsers.DOMParser: org.apache.xerces.parsers.DOMParser

Somehow I doubt that the above is the complete text of the exception....
Any parser can give much more detail, and you should write your program to catch the exceptions thrown by the build method and extract that detail.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: an Exception Occurs ??
 
Similar Threads
Creating JDOM Document from a String
Change XML element using Java
Parsing an xml File with DOMParser without a DTD ?
How to turn on Xerces validation? Help!!!
Strtus 2 Configuration issues