Book a Demo

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Stan

Pages: [1]
1
General Board / Re: XMI Import/Export on Desktop Version
« on: March 09, 2003, 10:46:07 pm »
To export from rose to xmi you need a plug-in that is available from the Rational site (URL) below.  This plug-in also allows you to import into rose from xmi.  Once installed the option appears in the same menu dropdown as the other plug-ins (sorry I can't remember which dropdown an I'm not at my work pc).  About 80-90% of the import is successful, diagrams don't transfer well and sometimes descriptive text is missing, but it is still easier then starting from scratch.

http://www.rational.com/support/downloadcenter/addins/rose/index.jsp

Good luck,
Stan.

2
General Board / Re: XMI Import/Export on Desktop Version
« on: March 06, 2003, 11:21:16 pm »
The desktop version does have xmi import/export.  I've used to it export to and import from rational rose.

Stan. :)

3
Hello.
Is there any way how to generate from class diagram (contains 2 tables linked by foreign key) XSD file with constraints?

Something like this?
Code: [Select]

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">

<xs:element name="table1">


<xs:annotation>



<xs:documentation>Comment describing your root element</xs:documentation>


</xs:annotation>


<xs:complexType>



<xs:sequence>




<xs:element name="table2" minOccurs="0" maxOccurs="unbounded">





<xs:complexType>






<xs:attribute name="table2_id" type="xs:int" use="required"/>






<xs:attribute name="table1_id" type="xs:int" use="required"/>





</xs:complexType>





<xs:key name="PK_table2_id">






<xs:selector xpath="."/>






<xs:field xpath="@table2_id"/>





</xs:key>




</xs:element>



</xs:sequence>



<xs:attribute name="table1_id" type="xs:int" use="required"/>


</xs:complexType>


<xs:key name="PK_table1">



<xs:selector xpath="."/>



<xs:field xpath="@table1_id"/>


</xs:key>


<xs:keyref name="FK_table2" refer="PK_table1">



<xs:selector xpath="table2"/>



<xs:field xpath="@table1_id"/>


</xs:keyref>

</xs:element>
</xs:schema>


thanks

--
Kamil

Pages: [1]