Book a Demo

Author Topic: Problem creating schema from class diagram...  (Read 6192 times)

jgeurts

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • Hi
    • View Profile
Problem creating schema from class diagram...
« on: January 04, 2005, 07:01:34 pm »
Hey all, I'm hoping there is an answer to what I am experiencing.

I have a class diagram that contains multiple class objects with the
same name.  The class objects have a sterotype of XSDComplexType.  The
only difference between the class objects is that they have different
attributes.

So, when I generate a schema from the class diagram, I get errors that
the global element (named the same as the class name) has already been
defined..

For example, I have a class named "add."  It has a string attribute
called "name."  I have another class named "add" that I use elsewhere
in the diagram.  It has an attribute called "type."  When I generate
the schema, both of those objects conflict.

Any help would be appreciated.

Thanks

Jim
____________________
Jim Geurts
Personal Site: http://blogs.biasecurities.com/jim/

jgeurts

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • Hi
    • View Profile
Re: Problem creating schema from class diagram...
« Reply #1 on: January 05, 2005, 08:48:15 am »
I worked around this by giving each class a unique name.  When I try to generate typed objects (using xsd.exe), I get this error:    

Warning: cannot generate classes because no top-level elements with complex type were found.

Any thoughts on how to fix that?

Thanks

Jim
____________________
Jim Geurts
Personal Site: http://blogs.biasecurities.com/jim/