? xml version = "1.0" encoding = "UTF-8" ? stdents !--每个student表示一个学生对象-- student code = "stu001" name 歌谣 /name birth 1996 - 09 - 09 /birth sex 男 /sex adress 安徽 /adress /student student code = "stu002" name 歌
<?xml version="1.0" encoding="UTF-8"?>
<stdents>
<!--每个student表示一个学生对象-->
<student code="stu001">
<name>歌谣</name>
<birth>1996-09-09</birth>
<sex>男</sex>
<adress>安徽</adress>
</student>
<student code="stu002">
<name>歌</name>
<birth>1996-09-09</birth>
<sex>男</sex>
<adress>安徽</adress>
</student>
<student code="stu003">
<name>歌</name>
<birth>1996-09-09</birth>
<sex>女</sex>
<adress>江苏</adress>
</student>
</stdents>
<!-- 用来存储学生的信息 -->