Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

xml  RSS feed

 
asha kiran
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to validate an xml document with a external dtd?
 
deekasha gunwant
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This post seems to belong to XML . so i'm moving this thread to
XML forum.
 
Brent Worden
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add a DOCTYPE declaration at the beginning of your XML document:
<!DOCTYPE NAME_OF_ROOT_ELEMENT SYSTEM "someDtd.dtd">
See http://www.w3.org/TR/REC-xml#dt-doctype for a more thorough explaination.

------------------
Brent Worden
http://www.Brent.Worden.org/
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!