I'm using the cartridge to generate an XML schema from a UML model (XMI version 
1.2) developed using MagicDraw. I have imported the AndroMDA profile into 
MagicDraw and use AndroMDA data types for attributes and set classes to use the 
XMLSchemaType stereotype.



As I make most classes an XMLSchemaType, a reasonable XMLSchema is generated. 
If I set all classes as XMLStereotypes the schema that is generated is 1kb in 
size and only contains the header information. After much trial and error it 
appears that there are 1 or 2 trouble classes that cause this empty XML schema 
to be generated. However, if some of the trouble classes are moved into a 
different package, the schema generates okay - as if the order of the classes 
makes a difference to how the schema is generated. I have also tried to 
re-generate classes from scratch, which still causes unpredictable behaviour - 
sometimes the model generates okay, othertimes not. I have never got a schema 
to generate for my entire model even though I have carefully checked that there 
is nothing different about the trouble classes from any other classes.



This appears to be a bug in the schema generation code, possibly because the 
structure of the UML model is fairly complex. I have tried all combinations of 
making reasonable alterations to the UML model but because these problems still 
arise I may have to alter the androMDA code. 



Can I get some pointers as to which bits of code to look for, or can anyone 
suggest reasons why this empty schema might be generated with no error messages,



thanks

Andy Jones
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=676#676
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to