• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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
 
PI day is 3.14 (march 14th) and is also einstein's birthday. And this is merely a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic