Author Topic: Additional elements - XML Schema generation  (Read 1043 times)

DrRob

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Additional elements - XML Schema generation
« on: September 06, 2004, 02:57:12 am »
If I want to produce an XML Schema that represents this:

<parent>
 <child>somedata</child>
</parent>

EA XML Schema generates the following:

<parent>
 <parent.child>
   <child>somedata</child>
 </parent.child>
</parent>

How do avoid getting the inbetween element?

Regards
Rob Campbell

PeterHeintz

  • EA User
  • **
  • Posts: 867
  • Karma: +52/-18
    • View Profile
Re: Additional elements - XML Schema generation
« Reply #1 on: November 03, 2004, 06:57:54 am »
Also playing with the schema generator?
To solve your problem follow this recipe.

1)      Assign the stereotype XSDschema to your package containing the schema classes
2)      Go to the resource view and click right on the UML Profile for XSD Schema/XSDschema
3)      Selcet “synch Tagged Values and Constraints…
4)      Click OK
5)      Go back to the package containing the classes
6)      Go to the tagged values and change the value of tag anonymousRole from false to true.
Best regards,

Peter Heintz