五、新建xml文件
插入手写的XML文件,存储员工信息。
1 <?xml version="1.0" encoding="gb2312"?> 2 <guoxing> 3 <technicalsection count="50" room="1403"> 4 <employee TNo="gx001"> 5 <name>陈涛</name> 6 <age>18</age> 7 <gender>男</gender> 8 </employee> 9 <employee TNo="gx001"> 10 <name>陈涛2</name> 11 <age>18</age> 12 <gender>男</gender> 13 </employee> 14 <employee TNo="gx001"> 15 <name>陈涛3</name> 16 <age>18</age> 17 <gender>男</gender> 18 </employee> 19 <employee TNo="gx001"> 20 <name>陈涛4</name> 21 <age>18</age> 22 <gender>男</gender> 23 </employee> 24 <employee TNo="gx001"> 25 <name>陈涛5</name> 26 <age>18</age> 27 <gender>男</gender> 28 </employee> 29 </technicalsection> 30 31 <salesdepartment count="50" room="1506"> 32 33 </salesdepartment> 34 </guoxing>
可以用浏览器进行预览。