• Post Reply Bookmark Topic Watch Topic
  • New Topic

dtd's  RSS feed

 
bhargavi kakarala
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

can anyone explain me the usage of SYSTEM & PUBLIC keywords in dtd's.when they r used.i know it's a basic thing but still iam not clear.
thanks in advance.
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The SYSTEM variant specifies the URI location of a DTD for private use in the document. the DTD is applied to all elements inside of root-element.
The PUBLIC variant is used in situations where a DTD has been publicized for widespread use. In those cases, the DTD is assigned a unique name, which the XML processor may use by itself to attempt to retrieve the DTD. If that fails, the URI is used.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!