Professional Documents
Culture Documents
XML Quiz 1
XML Quiz 1
1. State one reason people attending a Web Tools for Content Providers class should
care about XML.
Answer:
Nearly all web tools use an xml vocabulary, like HTML which is an XML vocabulary.
2. Create a well-formed XML document according to the following instructions
(remember, XML is case-sensitive)
The value of id is M1
<MyPSU id=”M1”>
<Section>
<Body> This body contains a sentence. </Body>
</Section>
</MyPSU>
3. Create a DTD that defines the following elements (remember, XML is case-
sensitive):
Yes
10. Is the following well-formed XML? If not, why not?
12. Which of the following elements has a malformed (not well-formed) attribute?
A. <paragraph style="light">Hello.</paragraph>
B. <paragraph style=light>Hello.</paragraph>
C. <paragraph style='light'>Hello.</paragraph>
D. <paragraph style="light & final">Hello.</paragraph>
Answer:
The answer is +
15. What is the DTD cardinality indicator that indicates
"The element may appear zero or more times"?
Answer:
The answer is *
16. What does XSL stand for?
Answer:
Extensible Stylesheet Language
17. State one reason people attending a Web Tools for Content Providers class should
care about XSL.
Answer:
A. <p></p>
B. <h2></h2>
C. <2below></2below>
D. <_punt></_punt>
Answer:
C: You cannot start an element name with a number.
19. Which in the XML family of standards is used to transform XML from one format
to another?
A. XSLT
B. DTD
C. XML Schema
D. JAVA
Answer:
A: XSLT
20. Which standards body curates XML?
A. True
B. False
Answer:
A: True
22. Which of the following XML declarations is incorrect?
<!ELEMENT p (#PCDATA)>
saxon9.jar
class.xml
class.xsl