• 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

Using DTD for validation

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all, I am using JDOM and Xerces to parse the external XML file, and everything is working fine. Now I'm trying to include DTD for validation, and have few questions:
1. Do I have to manually edit XML file to specify which DTD file to use?
2. Do I have to specify all XML elements and their children in DTD file? I am only interested in a few, the others may or may not be there.
3. Any thoughts on XML Schema vs DTD?
Thanks and regards, Branko
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic