Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Erwin Simmelink on January 25, 2010, 09:54:46 pm

Title: 2 questions about the built in XSD generator
Post by: Erwin Simmelink on January 25, 2010, 09:54:46 pm
Hi,

I’m trying to generate a certain XSD from modelled classes and relations in EA, with the build in XSD generator of EA. I’m having two issues:

1. The XSD is generated only for the classes in a certain the package.
I’d like to include a class from a different package (or just a whole other package) into the XSD. I have put a relation between the two classes from the different packages, but the class from the other package does not show up in the generated XSD.

2. I want to change the element type to set it to name it differently from the element name. I can’t find where I can change the element type from a certain class.

The is how the EA XSD generator creates a certain part of the XSD:
<xs:complexType name="Criteria">
   <xs:sequence>
      <xs:element name="Person" type="Person" minOccurs="0"/>
      <xs:element name="FinancialAgreement" type="FinancialAgreement" minOccurs="0"/>
   </xs:sequence>
</xs:complexType>

And this is how I want it to be generated:
<xs:complexType name="_Criteria">
   <xs:sequence>
      <xs:element name="Person" type="_Person" minOccurs="0"/>
      <xs:element name="FinancialAgreement" type="_FinancialAgreement" minOccurs="0"/>
   </xs:sequence>
</xs:complexType>

Is this possible, and if so, can you tell me where I can change it?

Thanks in advance for your help.