How to reflect relationship beween subclasses in XML

╄→尐↘猪︶ㄣ 提交于 2019-12-11 16:33:05

问题


How can i define relationship between subclasses in XML, for example a class researcher has two subclass Paper and author .


回答1:


Normally you would be using an XML schema to describe relationships in an XML file. But I seriously doubt you should make a model where researcher has subclass paper and author, it seems more like researcher is related to the class Paper in the role of Author. All of this you can describe in XML Schema.



来源:https://stackoverflow.com/questions/432699/how-to-reflect-relationship-beween-subclasses-in-xml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!