Exercise 05 to write XML documents
Please describe the XML document following student transcripts with the XML language and write a document type definition DTD for the XML document.
<?xml version="1.0" encoding="gb2312"?>
<students>
<student id="05001">
<name>张三</name>
<dept>计算机</dept>
<course id="001">
<title>编译方法</title>
<score>79</score>
</course>
<course id="002">
<title>C程序设计</title>
<score>85</score>
</course>
<course id="003">
<title>数据结构</title>
<score>93</score>
</course>
</student>
<student id="05002">
<name>李四</name>
<dept>数学</dept>
<course id="004">
<title>计算复杂性</title>
<score>72</score>
</course>
<course id="005">
<title>偏微分方程</title>
<score>86</score>
</course>
<course id="006">
<title>计算方法</title>
<score>95</score>
</course>
</student>
<student id="05003">
<name>王五</name>
<dept>化学</dept>
<course id="007">
<title>分子轨道理论</title>
<score>79</score>
</course>
<course id="008">
<title>有机化学</title>
<score>80</score>
</course>
<course id="009">
<title>分子生物学</title>
<score>88</score>
</course>
<course id="010">
<title>无机化学</title>
<score>98</score>
</course>
</student>
</students>
<?xml version = "1.0" encoding="GB2312"
standalone = "no"?>
<!DOCTYPE students[
<!ELEMENT students(student)*>
<!ELEMENT student(name,dept,course*)>
<!ELEMENT course(title*,score*)>
<!ELEMENT student (#PCDATA)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT dept (#PCDATA)>
<!ELEMENT course(#PCDATA)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT score (#PCDATA)>]>