Which of the following can be defined by an XML schema?

Which of the following can be defined by an XML schema? Each correct answer represents a
complete solution. Choose all that apply.

Which of the following can be defined by an XML schema? Each correct answer represents a
complete solution. Choose all that apply.

A.
Attributes that cannot appear in a document

B.
Default values for elements and attributes

C.
Data types for elements and attributes

D.
Elements that cannot appear in a document

E.
Fixed values for elements and attributes

F.
Number and order of child elements

Explanation:
XML schema describes the structure of an XML document. It is an XML-based alternative to DTD. An
XML Schema defines the following:
1.Elements that can appear in a document.
2.Attributes that can appear in a document.
3.Elements that are child elements.
4.Order of child elements.
5.Number of child elements.
6.Whether an element is empty or can include text.
7.Data types for elements and attributes.
8.Default and fixed values for elements and attributes.
Answer D and A are incorrect. An XML schema never defines the elements and attributes that
cannot appear in a document.



Leave a Reply 0

Your email address will not be published. Required fields are marked *