Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Can Papyrus generate UML from XML or XSD?(Looking for a way to model an XML schema)
icon5.gif  Can Papyrus generate UML from XML or XSD? [message #1702519] Wed, 22 July 2015 20:27 Go to next message
Thom DeCarlo is currently offline Thom DeCarloFriend
Messages: 8
Registered: December 2011
Junior Member
I'm looking for a way to model an XML schema and I thought Papyrus would be able to help me. But now I'm not so sure, or at least I haven't found a way to do it yet.

Is there some way in Eclipse (whether using Papyrus or something else, of course preferably free) to generate a UML representation of an XML schema?

Thanks!
Re: Can Papyrus generate UML from XML or XSD? [message #1703128 is a reply to message #1702519] Tue, 28 July 2015 17:58 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi,

You can use the EMF model importer to import a model from XSD and then
export it to UML.

Use the "File -> New -> Other..." menu action, take "EMF Generator
Model" in the wizard, and choose XSD as the import source. When you
have finished, you should end up in the editor for a *.genmodel
resource. EMF will have created an *.ecore from your schema. The
Generator menu has an option to export the model. Choose UML in this
wizard and see what you get. You can initialize the Papyrus diagrams
for the resulting *.uml resource if you like.

HTH,

Christian


On 2015-07-22 20:27:16 +0000, Thom DeCarlo said:

> I'm looking for a way to model an XML schema and I thought Papyrus
> would be able to help me. But now I'm not so sure, or at least I
> haven't found a way to do it yet.
>
> Is there some way in Eclipse (whether using Papyrus or something else,
> of course preferably free) to generate a UML representation of an XML
> schema?
>
> Thanks!
Re: Can Papyrus generate UML from XML or XSD? [message #1703233 is a reply to message #1703128] Wed, 29 July 2015 15:04 Go to previous messageGo to next message
Thom DeCarlo is currently offline Thom DeCarloFriend
Messages: 8
Registered: December 2011
Junior Member
That sounds perfect! I will try it. Thanks for your help.

-Thom
Re: Can Papyrus generate UML from XML or XSD? [message #1703996 is a reply to message #1703233] Thu, 06 August 2015 13:35 Go to previous messageGo to next message
Thom DeCarlo is currently offline Thom DeCarloFriend
Messages: 8
Registered: December 2011
Junior Member
Well, I've gotten as far as creating the *.ecore, *.genmodel, and *.uml files. But, I can't figure out how to turn them into a Papyrus diagram. There is a blank *.di file (which I think should hold the diagram), but I don't see how to initialize the diagram from the uml file.
Re: Can Papyrus generate UML from XML or XSD? [message #1704901 is a reply to message #1703996] Mon, 10 August 2015 14:11 Go to previous message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi, Thom,

You will just have to start creating new diagrams using the "New
Diagram" action in the context menu in the Model Explorer view.

There is an "extra component" that is intended to populate diagrams
automatically from existing models in some coherent and sensible way,
but I know nothing about it, not even whether it works with the version
of Papyrus that you are using.

Cheers,

Christian


On 2015-08-06 13:35:10 +0000, Thom DeCarlo said:

> Well, I've gotten as far as creating the *.ecore, *.genmodel, and *.uml
> files. But, I can't figure out how to turn them into a Papyrus diagram.
> There is a blank *.di file (which I think should hold the diagram), but
> I don't see how to initialize the diagram from the uml file.
Previous Topic:Import CSV Data with References to Imported Entities
Next Topic:C# program of library for export and import Papyrus project
Goto Forum:
  


Current Time: Fri Apr 26 19:31:04 GMT 2024

Powered by FUDForum. Page generated in 0.03454 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top