Thursday, 9 August 2012

Java Training: - Differences between DTDs and Schema?

Schema
DTD
Schema document is an XML document i.e., the structure of an XML document is specified by another XML documentDTDs follow SGML syntax
supports variety of data types similar to programming languageIn DTD everything is treated as text
creating relationship among elements is possibleThis is not possible in DTD without invalidating existing documents
Grouping of elements and attributes are possible to form a single logical unitGrouping of elements and attributes is not possible in DTD
it is possible to specify an upper limit for the number of occurrences of an elementIt is not possible to specify an upper limit of an element in DTDs

See the following video on overview on Servlets in Java: -



Click to get Java Training

Regards,

Get more Java Training from author’s blog

1 comment: