【发布时间】:2012-03-12 06:19:53
【问题描述】:
如果每个学生都应该做一些功课。
学生做作业时将一个元素添加到文件中。
现在文件结构应该如何?
这种结构是否合适。
<students>
<student>
<name>
abc
</name>
<Practice>
<id>
1
</id>
</Practice>
<Practice>
<id>
2
</id>
</Practice>
<student>
<student>
<name>
def
</name>
<Practice>
<id>
4
</id>
</Practice>
<student>
</students>
或者练习一下,我把两个单独的文件放进去
【问题讨论】:
-
明确你想做什么???
-
文件结构应该如何。如果每个学生都做一些练习。
-
你想在 xml 中进行验证,这样没有学生可以避免练习???
-
有可能学生没有完成作业
标签: xml xsd xml-parsing