Book a Demo

Author Topic: Data Model and XML Schema representation  (Read 5946 times)

Paule

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Data Model and XML Schema representation
« on: August 26, 2005, 01:48:12 am »
I design a data model and would like to represent it as an XML Schema. When generating the XML Schema, column attributes like 'Not Null' and 'Length', however, do not feature in the Schema.
I would like to see them as something like this:

<xs:attribute use="required"/>

 <xs:restriction base="xs:string">
   <xs:maxLength value="30"/>
 </xs:restriction>


I did import the UML Profile for XSD Schema and also tried to work via an intermediate transformation to an XSD Schema model, but to no avail.

Do I need to create a UML Profile for Data Models to do this ?

Thanks

Paul

thomaskilian

  • Guest
Re: Data Model and XML Schema representation
« Reply #1 on: August 26, 2005, 03:44:22 pm »
If I got you right, you have some <<table>> classes which you use for XSD generation? That won't work. You have to create an XSD package and a Database package from your PIM using appropriate transformation templates. From the one you can create XSD and the other to generate DDL.