xml是什么?
xml与html的不同?
xml特点
xml的数据结构——树
xml语法基本点
eg:
<?xml version="1.0" encoding="UTF-8"?>
<!--xml中的所有标记应符合"标识符"的规则,检验它是否合法可直接用浏览器打开,能打开就代表合法-->
<hncu>
<departments>
<teaching>
<xdy>
<teachers>
<teacher id="xd001">
<name>张三</name>
<age>30</age>
</teacher>
<teacher id="xd002">
<name>Jack</name>
<age>26</age>
</teacher>
</teachers>
<students>
<class id="1506401">
<student id="01">
<name>Mike</name>
<age>20</age>
<dorm>3栋301</dorm>
</student>
<student id="02">
<name>Tom</name>
<age>22</age>
<dorm>3栋301</dorm>
</student>
</class>
<class id="1506402">
<student id="01">
<name>mmmm</name>
<age>20</age>
<dorm>3栋301</dorm>
</student>
<student id="02">
<name>ttttt</name>
<age>22</age>
<dorm>3栋301</dorm>
</student>
</class>
</students>
</xdy>
</teaching>
<ccc>
<ddd>aaa</ddd>
</ccc>
</departments>
<buildings>
</buildings>
</hncu>