贴上读取的“向阳小学名单.xml”文件
<?xml version="1.0" encoding="UTF-8"?> <Root> <body> <school name="向阳小学"> <grade id="1" name="一年级"> <room rid="1" name="一班"> <student sid = "1101" sex = "男">赵一</student> <student sid = "1102" sex = "女">赵二</student> <student sid = "1103" sex = "女">赵三</student> <student sid = "1104" sex = "男">赵四</student> </room> <room rid="2" name="二班"> <student sid = "1201" sex = "女">钱一</student> <student sid = "1202" sex = "男">钱二</student> <student sid = "1203" sex = "男">钱三</student> </room> </grade> <grade id="2" name="二年级"> <room rid="1" name="一班"> <student sid = "2101" sex = "男">孙一</student>
【C#从入门到遛弯】第十六章 · XmlDocument.GetElementById为NULL问题&简易寻找XML唯一属性值的节点
最新推荐文章于 2023-02-26 11:52:07 发布