Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » .UML to .XML transformation(Papyrus generated activity model (.UML) needs to be transformed to .XML)
icon14.gif  .UML to .XML transformation [message #1705463] Sun, 16 August 2015 09:14 Go to next message
Raghu Rajappa is currently offline Raghu RajappaFriend
Messages: 1
Registered: August 2015
Junior Member
I generated a .uml file containing xmi format text, from the activity diagram in Papyrus tool with MARTE profile. I am trying to understand how to convert this to .xml file so that I could use that .xml file in another software tool (example dataflow modelling) to analyse throughput. I tried XSLT software used in w3 school tool, but it says input xml file is not well-formed. I dont understand what that means and I am stuck. I hope someone can shed some light on-to this. Also please forgive me if this is the wrong forum to post this question and let me know the right place. I apologize for my stupidity, but I hope you understand.
Re: .UML to .XML transformation [message #1705545 is a reply to message #1705463] Mon, 17 August 2015 12:48 Go to previous message
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 1199
Registered: July 2009
Location: Canada
Senior Member

Hi,

A tool that complains of invalid XML should provide context: what kind
of problem the file manifests and where (line/column location). We
can't help if the tool doesn't do that.

But, in any case, it would be very surprising to find that either
Papyrus or the UML2 project's example editor produced an invalid XML
document. The EMF infrastructure that they are built on just doesn't
do that.

What do you mean by conversion to XML? The XMI serialization of UML,
as implemented by Eclipse, is already XML. If you just need to convert
to some other XML schema, then I suppose that XSLT could be used for
that purpose. In any case, you will need a fairly deep understanding
of XML and XMI in order to develop the XSL transformation, certainly a
good enough understanding to find what is the invalid XML in your UML
file (if any). I would suggest finding an XML validator tool that can
give you a better diagnosis than "input xml file is not well-formed".

Cheers,

Christian


On 2015-08-17 11:51:23 +0000, Raghu Rajappa said:

> I generated a .uml file containing xmi format text, from the activity
> diagram in Papyrus tool with MARTE profile. I am trying to understand
> how to convert this to .xml file so that I could use that .xml file in
> another software tool (example dataflow modelling) to analyse
> throughput. I tried XSLT software used in w3 school tool, but it says
> input xml file is not well-formed. I dont understand what that means
> and I am stuck. I hope someone can shed some light on-to this. Also
> please forgive me if this is the wrong forum to post this question and
> let me know the right place. I apologize for my stupidity, but I hope
> you understand.
Previous Topic:can't resize Combined Fragment
Next Topic:Can Papyrus convert uml file to xmi file?
Goto Forum:
  


Current Time: Sun Feb 23 02:30:46 GMT 2020

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

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

Back to the top