Book a Demo

Author Topic: Schema generation  (Read 2158 times)

wbj

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Schema generation
« on: February 13, 2007, 11:32:19 am »
Hello,
I am struggling with the generation of xsd schemas from a UML data model. And I am looking to this forum to help answer 3 questions:

1) Why does XML schema generation create both an element and a complexType with the same name - shouldn't that rather be an element with an embedded anonymous type?

2) Actually what I am really looking for is a way to control whether a class is tranformed into an Element with anonymous complexType, or just a complexType - I can not find anything in UML for XML profile that would support that.

3) Also I have noticed that when I assign a XSDSchema stereotype to a package, I can no longer open the properties view for any of the classes in the package. What's the idea behind this constraint?

Thanks for your help.
wbj

patfada

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Schema generation
« Reply #1 on: February 14, 2007, 11:58:21 am »
3)when you view the properties of a class in an <<XSDSchema>> package, you initially only see a limited set of properties related to XSD. If you click on the UML button in the properties dialog , you can see the full set of properties