作为我大学作业的一部分,我必须创建一个用于电子健康监测和记录保存的 xml 数据模型,现在我了解了 XML 的概念和基本结构,但是对于构建它的最佳方式,我有点困惑;我有一个 xml 文档(见下面的结构),但我想问一下将外围设备和医疗记录保存在“健康”下的同一文档中是否是个好主意。因为这会使单个文档变得非常大。
<health>
<pat>
<person>
<name></name>
<gender></gender>
<mobile></mobile>
<email></email>
</person>
<address>
<house></house>
<street></street>
<city></city>
<pc></pc>
</address>
</pat>
<Contact>
<name></name>
<tel></tel>
</Contact>
<doctor>
<title></title>
<firstname></firstname>
<surname></surname>
<tel></tel>
</doctor>
<drug>
<name></name>
<quantity></quantity>
<cost></cost>
<expirydate></expirydate>
<prescribedate></prescribedate>
</drug>
<peripheraldata>
<temperature></temperature>
</peripheraldata>
<records>
<warnings></warnings>
<symptoms></symptoms>
<diagnosis></diagnosis>
<date></date>
</records>
</health>
提前致谢