• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

beginner DTD question

 
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I understand the basic concept that DTDs used for XML validation. However, it seemds kinda odd that it's the xml document that will refer to the DTD thru the DOCTYPE element. Let's say the sender and the receiver agree upon a specific format for the xml document they exchange, and the receiver can validate the xml document, using an agreed upon DTD. Now, if the sender sends an xml document that does NOT include a DOCTYPE element, the receiver can no longer validate the document, and whole purpose of defining the DTDs is defeated. Doesn't it make more sense to send the DTD as a parameter to the validating parser, and have the parser validate the xml document? Am I missing some thing?
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving this thread to the XML and Related Technologies forum since it's not about XML Certification. Please continue the discussion over there.
Thanks.
 
Bala Krishna
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'd really appreciate it if some one can answer this question. Thanks.
 
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I love JavaRanch, but the XML forum is pretty quiet. A lot of XML questions seem to go unanswered here. Try this site:
IBM DeveloperWorks XML Tips
 
Bala Krishna
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you. Will try my luck there.
 
reply
    Bookmark Topic Watch Topic
  • New Topic