Question:
(a) Describe the purpose and importance of a Document Type Definition in XML.
(b) Describe the difference between PCDATA and CDATA with respect to a DTD.
(c) Explain the differences between a „well-formed? and a „valid? XML document.
(d) Describe syntax rules for a well-formed XML document.
(e) Describe three differences between Document Types Definitionand Schemas.
(f) A pet shop keeps records of its pets by storing the name of the pet, the pet type, its age, and the date the store started selling the pet. Each pet also has a unique ID used for identifying the pet?s medical history.
Write an internal Document Type Definition of type petstore for the above structure.