There have been several requests to this list for information on generating
XML Schemas from Rose.  I have written about 10 articles on exactly this
subject, along with a book published last year.  Pointers to these articles
are available at:
    http://XMLmodeling.com/articles

An appendix of my book includes a comprehensive UML profile for modeling XML
Schemas. These stereotypes and tagged value properties allow you to specify
user-defined datatypes, attribute groups, choose between XML attributes or
elements in the generated schema, and many other customizations.  But you can
also use any UML class diagram without stereotype extensions to generate a
complete XML Schema.

You can download a Rose add-in from XMLmodeling.com that defines all of these
stereotypes and properties.  An "XSD" tab is added to dialog boxes in Rose,
with appropriate properties for Class, Attribute, Package, etc.  To get the
add-in, register as a member of XMLmodeling.com, then click on the "Members
Only" tab of the portal.  You can also download a Rose .ptl file containing
definitions of the XML Schema built-in datatypes, which you can then use as
attribute datatypes in your models.

This Rose add-in does NOT implement the Schema generation, but only defines
the UML profile extension for modeling schemas.  However, a Web-based
application is available where you can upload a model using the XMI 1.0
format.  This application is called hyperModel and it's available on
XMLmodeling.com.  You can browse HTML which is dynamically generated from your
UML model, and you can generate complete XML Schemas.  You can generate a
schema from any model without using the stereotypes, or you can customize the
schema design using the add-in profile.

This application and add-in has been available since last October and has been
used by many people with very good results.  I am completing new tools that
automatically reverse-engineer XML Schemas into an XMI 1.0 file, which you can
then import into Rose.  These same tools also work well with TogetherSoft,
MagicDraw, ArgoUML, Poseidon, and others that support XMI 1.0 export and
import.

An XMI import/export add-in for Rose is available from Rational's site at:
http://www.rational.com/products/rose/forms/xmisupport/xmisupport.jsp

Please try this out and let me know how it works for you!

Regards,
  Dave Carlson
  [EMAIL PROTECTED]
  Boulder, Colorado

----- Original Message -----
From: "Nallamilli, Surya" <[EMAIL PROTECTED]>
To: "'chengpeng'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, February 20, 2002 6:25 PM
Subject: RE: (ROSE) schema file

>
> You need to have Rose 2000e Enterprise Edition or later release of Rose
> Enterprise Edition.
>
> If you already have an existing DTD, you can simply reverse engineer that
> DTD using the XML/DTD addin.  If you do not have an existing DTD then you
> would have to model the DTD.
>
> Then, you need to run the following script to create XML Schema from your
> DTD model:
> http://www.rational.com/support/downloadcenter/addins/media/rose/RoseXmlSche
> ma.ebs
>
> Hope that helps.
>
> --Sonny
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 20, 2002 6:17 PM
> > To: [EMAIL PROTECTED]
> > Subject: (ROSE) schema file
> >
> >
> >
> > Dear forum members,
> >    I want to use rose to create a XML SCHEMA file for a
> > system model. how can i do?
> >
> >   best regards.
> >
> >  chengpeng.




************************************************************************
* Rose Forum is a public venue for ideas and discussions.
* For technical support, visit http://www.rational.com/support
*
* Post or Reply to: [EMAIL PROTECTED]
* Subscription Requests: [EMAIL PROTECTED]
* Archive of messages:
*    http://www.rational.com/support/usergroups/rose/rose_forum.jsp
* Other Requests: [EMAIL PROTECTED]
*
* To unsubscribe from the list, please send email
*    To: [EMAIL PROTECTED]
*    Subject: <BLANK>
*    Body: unsubscribe rose_forum
*************************************************************************

Reply via email to