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

SAX unable to locate DTD from XML

 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have problems with my SAXParser, its not able to find the dtd.

<!DOCTYPE movies SYSTEM "movies.dtd">

I thinks its is because the classfile is runned in a diffrent location then the xmlfile is stored. I have to use this value to get things going.

<!DOCTYPE movies SYSTEM "C:\myxml\movies.dtd">

Is there a work around for this, I would like to keep none-static path to the dtd.

Im using the example code provided by SAX

 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You probably need to override the resolveEntity() method in your handler class. See the javadoc for some pointers.
 
reply
    Bookmark Topic Watch Topic
  • New Topic