On Sep 26, 7:43 pm, "John Saunders [MVP]" <john.saunders at
trizetto.com> wrote:
> "Arlene Reid" <arlene.r...@gmail.com> wrote in message
>
[quoted text clipped - 30 lines]
> --------------------------------------------------------------------------------
> John Saunders | MVP - Windows Server System - Connected System Developer
The Enterprise Architect i'm using is used to create UML diagrams and
then it generates code for these diagrams. I would like to be able to
draw a class diagram and then generate the xml accordingly
Ok, you mean "Sparx Enterprise Architect". I use it too.
You can do what you want by using transformations. In the Project Browser,
right-click the package containing your classes and choose Transform Current
Package. In the dialog that follows, choose which package elements you want
to transform, and in the right-hand panel choose which transformations you
want to run (XSD to transform into XSD). When you choose a target
transformation, you will be prompted to choose a destination for the
transformed package.
Click "Do Transformation", and your classes will be transformed into an XML
Schema model. You can then export that model as an XSD file.
I've recently done this with a reverse-engineered database model. EA was
able to transform the tables, columns and relationships of that model into
the equivalent XSD. It even transformed the descriptions of the columns into
<xs:documentation/> in the XSD!
I understand that you can customize existing transforms or write your own.
This is a very powerful tool.

Signature
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer
Arlene Reid - 27 Sep 2007 15:30 GMT
On Sep 27, 1:49 pm, "John Saunders [MVP]" <john.saunders at
trizetto.com> wrote:
> On Sep 26, 7:43 pm, "John Saunders [MVP]" <john.saunders at
>
[quoted text clipped - 63 lines]
>
> - Show quoted text -
yes i have seen this feature but i'm interested in genereating my own
xml file with its own elements and attributes
John Saunders [MVP] - 27 Sep 2007 16:59 GMT
On Sep 27, 1:49 pm, "John Saunders [MVP]" <john.saunders at
trizetto.com> wrote:
> "Arlene Reid" <arlene.r...@gmail.com> wrote in message
>
[quoted text clipped - 73 lines]
>
> - Show quoted text -
yes i have seen this feature but i'm interested in genereating my own
xml file with its own elements and attributes
----------
Ok, you could either use their object model, program directly against the
repository (a .EAP file is a Jet database), or you could export the model to
XMI and then use an XSL transform to transform that into the format you
want.
You'll probably get more feedback on the Sparx Forums
(http://www.sparxsystems.com.au/cgi-bin/yabb/YaBB.cgi). You and I may be
the only EA users in this newsgroup!

Signature
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer