Sign In/My Account | View Cart  
advertisement

Article:
 Modeling XML Vocabularies with UML: Part I
Subject: uml to xml schemas
Date: 2005-12-05 19:24:15
From: xmlnewcomer

Hi


We are working on a MDA architecture based project but new to xml and xmi and hypermodel etc. We are generating xml schemas from the uml models created in rational rose.


I have two questions:


1) How are composition, associations and inheritance (class hierarchies) of uml models represented in xml schemas; When to use type substitution vs substitution groups in xml schemas to represent the above.
In a domain model, consider a class hierarchy with an abstract super class X, that has two or more concrete subclasses:
a) A different class Y has an attribute whose type is X.
b) A different class Z has association(s) with more than one concrete classes of X.
How the above cases are represented in xml schema; is it by type substitution or substitution groups?


2) Currently the auto generated xml schemas represent the class hierarchy of X as type substitution and at the same time has reference to substitution groups(as it is true by default in xml schemas) but expects the instance document to be user modified to enter type for xsi:type. But we thought that if substitution groups are used, manual changes to instance documents can be avoided and that the xml content is more readable. So is there a way to tweak the xml schema auto generators to produce substitution groups related code instead of type substitutions in xml schemas.


Your input is highly appreciated as it is very crucial for my work progress.


Thanks in advance.



Previous Message Previous Message   Next Message Next Message


Titles Only Titles Only Newest First

Sponsored By: