Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

an Exception Occurs ??

 
omar bili
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic