PY4E: Chapter 13 (Part 1) eXtensible Markup
Language- Questions and Answers
What is the purpose of XML Schema? To establish a contract as to what is a valid XML
For this XML Schema:
<xs:complexType name="person">
<xs:sequence>
<xs:element name="lastname" type="xs:string"/>
<xs:element name="age" type="xs:integer"/>
<xs:element name="dateborn" type="xs:date"/>
</xs:sequence>
</xs:complexType>
And this XML,
<person>
<lastname>Severance</lastname>
<Age>17</Age>
<dateborn>2001-04-17</dateborn>
</person>
Which tag is incorrect? Age
, What is a good time zone to use when computers are exchanging data over APIs?
Universal Time / GMT
Which of the following dates is in ISO8601 format? 2002-05-30T09:30:10Z
What is "serialization" when we are talking about web services? The act of taking data
stored in a program and formatting it so it can be sent across the network
What does the "Z" mean in this representation of a time:
2002-05-30T09:30:10Z This time is in the UTC timezone
Which of the following are not commonly used serialization formats? TCP, HTTP,
Dictionaries
In this XML, which are the "complex elements"?
<people>
<person>
<name>Chuck</name>
<phone>303 4456</phone>
</person>
<person>
<name>Noah</name>
<phone>622 7421</phone>
Language- Questions and Answers
What is the purpose of XML Schema? To establish a contract as to what is a valid XML
For this XML Schema:
<xs:complexType name="person">
<xs:sequence>
<xs:element name="lastname" type="xs:string"/>
<xs:element name="age" type="xs:integer"/>
<xs:element name="dateborn" type="xs:date"/>
</xs:sequence>
</xs:complexType>
And this XML,
<person>
<lastname>Severance</lastname>
<Age>17</Age>
<dateborn>2001-04-17</dateborn>
</person>
Which tag is incorrect? Age
, What is a good time zone to use when computers are exchanging data over APIs?
Universal Time / GMT
Which of the following dates is in ISO8601 format? 2002-05-30T09:30:10Z
What is "serialization" when we are talking about web services? The act of taking data
stored in a program and formatting it so it can be sent across the network
What does the "Z" mean in this representation of a time:
2002-05-30T09:30:10Z This time is in the UTC timezone
Which of the following are not commonly used serialization formats? TCP, HTTP,
Dictionaries
In this XML, which are the "complex elements"?
<people>
<person>
<name>Chuck</name>
<phone>303 4456</phone>
</person>
<person>
<name>Noah</name>
<phone>622 7421</phone>