This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes DTD and extra tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "DTD and extra tags" Watch "DTD and extra tags" New topic
Author

DTD and extra tags

Sai Prasad
Ranch Hand

Joined: Feb 25, 2002
Posts: 560
Hello All,
Is it valid to create an xml document that should conform to a DTD with extra tags not listed in DTD? Thanks.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
No. The DTD has to define all elements used in the XML document.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DTD and extra tags
 
jQuery in Action, 3rd edition