一则XML Schema的例子
来源:互联网 发布:nba现役大前锋数据排名 编辑:程序博客网 时间:2024/05/12 05:50
<?xml version="1.0" encoding="UTF-8"?>
<!-- 10 question quiz about Australian Geography -->
<quiz xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="quiz.xsd">
<mchoice>
<question>What is the capital city of Australia?</question>
<answer>Sydney</answer>
<answer correct="yes">Canberra</answer>
<answer>Melbourne</answer>
<answer>Gold Coast</answer>
</mchoice>
<mchoice>
<question>Launceston is the second largest city in which Australian state?</question>
<answer>Victoria</answer>
<answer>New South Wales</answer>
<answer correct="yes">Tasmania</answer>
<answer>Western Australia</answer>
</mchoice>
<mchoice>
<question>Which state has the famous 'Twelve Apostles' ?</question>
<answer correct="yes">Victoria</answer>
<answer>South Australia</answer>
<answer>New South Wales</answer>
<answer>Western Australia</answer>
</mchoice>
<mchoice>
<question>Which is a popular ski resort in NSW?</question>
<answer correct="yes">Perisher Blue</answer>
<answer>Mt. Buller</answer>
<answer>Mt. Baw-Baw</answer>
<answer>Lake Mountain</answer>
</mchoice>
<mchoice>
<question><![CDATA[Which of the following is <u>NOT</u> Australian native animals?]]></question>
<answer>Kangaroo</answer>
<answer correct="yes">Penguin</answer>
<answer>Koala</answer>
<answer>Wombat</answer>
</mchoice>
<mchoice>
<question>Which city has an extensive tram network?</question>
<answer>Sydney</answer>
<answer correct="yes">Melbourne</answer>
<answer>Adelaide</answer>
<answer>Ballarat</answer>
</mchoice>
<mchoice>
<question>What is known as 'The Silver City' in Australia?</question>
<answer>Alice Springs</answer>
<answer correct="yes">Broken Hill</answer>
<answer>Ballarat</answer>
<answer>Silverton</answer>
</mchoice>
<mchoice>
<question>In which location the war movie 'Thin Red Line' was taken?</question>
<answer>Anglesea</answer>
<answer>Apollo Bay</answer>
<answer>Margaret River</answer>
<answer>Monkey Mia</answer>
<answer correct="yes">Townsville</answer>
</mchoice>
<mchoice>
<question><![CDATA[Which is <u>NOT</u> true about Uluru ?]]></question>
<answer>It is the world biggest monolith located in the centre of Australian continent</answer>
<answer>It was named 'Ayers Rock' by European explorer William Gosse in 1873</answer>
<answer correct="yes">Aboriginal people encourage tourists to climb Uluru</answer>
<answer>The area contains carvings and paintings by Aboriginal people</answer>
</mchoice>
<mchoice>
<question>What is so special about Longreach?</question>
<answer>The place where a blacksmith named Thomas Hiscock found the first gold that triggerred gold rush</answer>
<answer>The town has an expansive, well-preserved penal colony of Australia's early history</answer>
<answer correct="yes">The first commercial flight by Qantas took from this town in 1921</answer>
<answer>None of these answers are correct</answer>
</mchoice>
</quiz>
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="quiz">
<xs:complexType>
<xs:choice>
<xs:element name="mchoice" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="question" type="xs:string" />
<xs:element name="answer" minOccurs="2" maxOccurs="unbounded">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="correct" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="yes" />
<xs:enumeration value="no" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
- 一则XML Schema的例子
- 一个简单的XML Schema的例子
- 一个简单的XML Schema的例子
- 一个简单的XML Schema的例子
- 一个简单的XML Schema的例子
- 一个简单的XML Schema的例子
- 一个很不错的XML Schema例子
- xml之schema例子
- 一个简单的XML Schema的例子
- 一个完整的schema验证xml的例子
- 同时使用 xml, schema 和 xslt 的例子
- 一则sql优化的例子
- Schema简单的例子
- XML schema的使用
- solr的schema.xml
- XML Schema 的编写
- xml的schema
- XML的约束:schema
- The MathWorks公布新版MATLAB及Simulink
- iiptraf linux下网卡流量查看软件
- 无法加载DLL (oci.dll)的解决方案
- 在Linux下刻录APE音乐
- 最新闪存市场排名出炉,NOR悲NAND喜
- 一则XML Schema的例子
- SSE所需头文件
- 出租司机给我上的MBA课
- 依赖关系详解
- XML Schema Part 0: Primer Second Edition
- SigmaTel使出专利杀手锏,中国MP3播放器产业链均受影响
- SSE2初学指南
- MMX及SSE优化--MMX篇
- MMX及SSE优化--SSE篇