Problem:
(a) (i) Distinguish between Complex Type and Simple Type elements.
(ii) List two benefits while using XSDs in XML data modeling.
(b) Both XML schema and XSL use elements named element and attribute. Use this fact to motivate the need for namespaces in XML.
(c) Describe the five different types of element content defined by DTDs.
(d) Consider the following fragment of an XML document:
Pegas
Horse
Assuming that a document object has been instantiated as a DOM document, write extract codes to demonstrate how the methods of the Node and Document objects allows you to create the above XML document fragment.