Web and Internet Technology
105614Module 4: XML Presentation Technology & XML Processor
1(f). Which situation most strongly motivates using XML Schema rather than a basic DTD? (i) The document requires only element names (ii) The document requires richer data-type definitions (iii) The document must contain HTML styling (iv) The document must execute JavaScript20262m
Module 4: XML Presentation Technology & XML Processor
View this question on its own page →Which situation most strongly motivates using XML Schema rather than a basic DTD?
(i) The document requires only element names
(ii) The document requires richer data-type definitions
(iii) The document must contain HTML styling
(iv) The document must execute JavaScript1(g). Suppose a program needs to repeatedly navigate from a parent XML element to its child elements and modify different nodes in memory. Which model is more suitable? (i) DOM (ii) SAX (iii) DTD (iv) XPointer20262m
Module 4: XML Presentation Technology & XML Processor
View this question on its own page →Suppose a program needs to repeatedly navigate from a parent XML element to its child elements and modify different nodes in memory. Which model is more suitable?
(i) DOM
(ii) SAX
(iii) DTD
(iv) XPointer5(a). Explain the importance of XML Schema and discuss its advantages over Document Type Definition.20267m
Module 4: XML Presentation Technology & XML Processor
View this question on its own page →Explain the importance of XML Schema and discuss its advantages over Document Type Definition.
5(b). Differentiate between Document Object Model and Simple API for XML parsers. Compare their memory usage, parsing mechanism (tree-based vs. event-driven), speed and suitable use cases.20267m
Module 4: XML Presentation Technology & XML Processor
View this question on its own page →Differentiate between Document Object Model and Simple API for XML parsers. Compare their memory usage, parsing mechanism (tree-based vs. event-driven), speed and suitable use cases.
6(a). Write a JavaScript program to create and use a JavaScript object for storing student details such as name, roll number and course. Display the object properties dynamically on a web page.20267m
Module 4: XML Presentation Technology & XML Processor
View this question on its own page →Write a JavaScript program to create and use a JavaScript object for storing student details such as name, roll number and course. Display the object properties dynamically on a web page.
6(b). Explain the XMLHttpRequest object and describe its request and response objects with a suitable example.20267m
Module 4: XML Presentation Technology & XML Processor
View this question on its own page →Explain the XMLHttpRequest object and describe its request and response objects with a suitable example.