• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

parsing xml file with dtd

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello all,
i have a big problem with parsing a xml file with dtd...
if i try to parse

with following dtd

with this code under was 3.5

i've got this error from was:

in my servlet directory are
jaxp 1.0
jdom 0.7
xerces

has anybody an idea where my error is ?
please help
tia
andreas
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check your classpath, the package sequence in it may be wrong. There are probably concurrent implementations of the same object. You try to use one but at runtime, but just the first one in your classpath in taken into account. This one doesn't have the same implementation (here, in your stacktrace, it's the constructor of NodeImpl that differs).
Hope this will help you
Christophe
 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Andreas,
In your xml, the root node is "<takeover>", So your dtd declaration should be like this
<!DOCTYPE takeover SYSTEM "uebergabe.dtd">
NOT
<!DOCTYPE usertransfer SYSTEM "uebergabe.dtd">
Hope your problem gets solved.
-Shoba
 
snoofle
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello Shoba,
thanks a lot, that was the error
tia
andreas spiessl
 
What are you doing in my house? Get 'em tiny ad!
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic