Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

beginner DTD question

 
Bala Krishna
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • 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?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Hi,
I'd really appreciate it if some one can answer this question. Thanks.
 
Charles McGuire
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thank you. Will try my luck there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic