MENU

Chapter 8 Introduction to XML Solutions

Question - 1 : - What do you mean by XML file?

Answer - 1 : - XML file or XML document is a component of XML document system which contains the real data and its semantics.

Question - 2 : - List the components of prolog.

Answer - 2 : -

  1. An XML Declaration
  2. Processing Instructions (PI)
  3. Document Type Definition (DTD)
  4. Comments
  5. White Spaces and New line

Question - 3 : - By which we can describe the properties of elements?

Answer - 3 : - The properties of elements can be described through attributes.

Question - 4 : - Write the components of an XML file in terms of logical structure.

Answer - 4 : -

An XML file contains:

  • an optional prolog
  • a data instance

Question - 5 : - How will you define an element in DTD contain plain text?

Answer - 5 : - If an element should contain plain text, you define the element using #PCDATA. PCDATA stands for Parsed Character Data and is the way you specify non-markup text in your DTDs.

Question - 6 : - What does XML parser do?

Answer - 6 : - An XML parser basically checks whether a document is following XML standard or not.

Question - 7 : - Which document is used to define the style of an XML document?

Answer - 7 : - CSS is a text document (or stylesheet) that is commonly used to define the style and layout of an XML document.

Question - 8 : - Can same CSS document be used in multiple XML documents?

Answer - 8 : - Yes, the same CSS document can be used in multiple XML documents.

Question - 9 : - Explain the usage of an XML parser.

Answer - 9 : - XML parser is a software used to read, write and update to an XML document. An XML parser converts an XML document into an XML DOM object.

Question - 10 : - What does it mean when we say that XML tags are case sensitive?

Answer - 10 : -

The case sensitivity of XML tags means, the opening and closing tags must be in the same case. The following codes is an example of a well-formed document, where the opening and closing tags are in the same case, i.e.
Amit

Free - Previous Years Question Papers
Any questions? Ask us!
×