Book a Demo

Author Topic: UML Profile for XML  (Read 2795 times)

ASP

  • EA User
  • **
  • Posts: 41
  • Karma: +0/-0
    • View Profile
UML Profile for XML
« on: June 13, 2009, 11:06:29 am »
I read the "XML Schema Generation" page on this site (http://www.sparxsystems.com/resources/xml_schema_generation.html, and I have a question about the "PhoneChoice" class model, which is modeled using the UML Profile for XML.

I cannot figure out how to specify the "string" type on the upper right corner of the class window.

I'd appreciate your feedback. Thanks.

ASP

  • EA User
  • **
  • Posts: 41
  • Karma: +0/-0
    • View Profile
Re: UML Profile for XML
« Reply #1 on: June 13, 2009, 11:59:13 am »
Also, from the same link, can someone explain this bulleted item?

Quote
Less obvious from the diagram is the ordering of the attributes for the Person class. Notice how the "firstName" and "surName" attributes have had their position swapped in the schema. This is because the position tagged value has been used for the attribute of the Person class in the modified example.

This is rather important, since "xs:sequence" model group is generated by default. I would have expected that the attribute order in the "Person" class model would translate to the model group. What exactly is causing "firstName" and "surName" to swap their order?

Thanks.