You are on page 1of 2

XML Test Paper

Duration: 2 hours Marks: 100

Answer all them: Each question carries 2 Marks.

1. What is the difference between UTF-8 & UTF-16 ?

2. What are Global Attributes?

3. What is tag?

4. What is the use of apply-templates?

5. What is the difference between Element and Attribute?

6. What is the use of ParseError object?

7. What is the use of for-each element?

8. What is the difference between simple element and complex element?

9. What is the difference between sequence and all element used in xsd
document?

10.Write a small code snippet for associating a CSS file with an XML
document?

Answer all them: Each question carries 5 Marks.

1. Explain the advantage of User Selected View of Data using XML?

2. What are the different components of an XML document?

3. What are the future uses of xml?

4. What is the difference between DTD and XSD?

5. What is the difference between CSS and XSLT?

6. What is the difference between xslt template and apply-templates ?


Explain with small code snippet

7. Explain the different elements used in xsd document to group user-


defined elements and attributes?

8. Write code to create a complex datatype used to store product_name,


description, price and quantity elements?
Answer all them: Each question carries 10 Marks.

1. What is XML? Explain the different rules that needs to followed while
creating an XML document?

2. What is a namespace? Explain the different methods of declaring


namespaces?

3. The lists of products sold at Cybershoppe needs to displayed. The product


details include productId, name, and price. You need to display this data
in table format. To meet the stated requirements, create an XML
document and the XSLT document for displaying data in a table format?

4. What is DOM?Explain the different object & methods used by the DOM
object?

You might also like