Generating XML Schema Definitions from UML diagrams

Posted on 2004-03-22
Last Modified: 2013-11-19
we're producing data models using UML class diagrams (specifically, using Rational Rose). A number of our solutions will move forward by us specifying XML Schemas, and letting others develop reader applications. Does anyone know a way of automatically producing validated XML Schema Definitions files automatically from the UML class diagrams?
Question by:peterp
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 26

Expert Comment

ID: 10649687
There are tools for taking UML models and generating DB certainly seems reasonable that someone should have a tool for generating the XML schema as well.  If not, it sounds like a worthy project.  It's been quite a while since I've used Rose.   Does it have any sort of XML representation?  That is, can you "export" the model using one of the UML markup grammars such as UXL or PML?

Mike Sharp
LVL 15

Accepted Solution

dualsoul earned 250 total points
ID: 10652795
>specifically, using Rational Rose

:) Rational Rose can do UML->XSD mapping (and vica-versa) since 2000 version.
Are you sure you licensed this plug-in? :)
LVL 26

Expert Comment

ID: 10652837
I suppose that's why I, at least, didn't know about it.  I got my version in 1999.  But it is just a mapping tool, or can you specify perhaps some configuration, and export an XSD that changes when the UML changes?  I've seen other schema mapping tools that still require you to start out with a schema--all they do is make the association of elements and attributes to a model easier.

Mike Sharp
LVL 15

Expert Comment

ID: 10655589
as i remember - you can generate XSD by your model, and do, so called, reverse-engineering of XSD to model.
So, when you changed something in model you need to regenerate XSD, when you changed XSD - you need reengineer your model you update changes.


Author Comment

ID: 10685415
Last time I looked on the Rational Developer Network, there was some discussion of an "add-in" which generates an XMI representation of the model, and how this could be processed to create a Schema. However, the plug in itself had disappeared somewhere in mid 2002.

Today, however, I find the plug-in is back, so I'll try that route.

XML DTD creation is apparently built in to Rose 2000 Enterprise (not sure about successor versions), and there is a script downloadable from the Rational Developer Network to convert these DTDs to XSD. Enterprise is rather more expensive than modeller, though...

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
Shoutout to Emily Plummer ( for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question