Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » .UML to .XML
.UML to .XML [message #879979] Fri, 01 June 2012 08:25 Go to next message
Hela Hakim is currently offline Hela HakimFriend
Messages: 20
Registered: May 2012
Junior Member
Hello,
I would like to change l'extension .UML (file extension with the papyrus) with the extension .XML.
and thanks. Smile
Re: .UML to .XML [message #879984 is a reply to message #879979] Fri, 01 June 2012 08:34 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Why? It's better to assume you won't be able to get that to work.


On 01/06/2012 10:25 AM, Hela Hakim wrote:
> Hello,
> I would like to change l'extension .UML (file extension with the
> papyrus) with the extension .XML.
> and thanks. :)


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: .UML to .XML [message #879991 is a reply to message #879984] Fri, 01 June 2012 08:49 Go to previous messageGo to next message
Hela Hakim is currently offline Hela HakimFriend
Messages: 20
Registered: May 2012
Junior Member
Hello,
Sorry,but i misunderstood your message.
En fact ,I want to manipulate the fichier.UML via JDOM (through a Java class).
Gold after my research I knew that for 'parsing' a file with JDOM it should be .XML not . UML .
Re: .UML to .XML [message #879994 is a reply to message #879979] Fri, 01 June 2012 08:52 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

That is very unwise. *.uml is for the many Eclipse UML namespaces. *.xmi
for the many OMG UML namespaces.

Of course, if you wish to say good bye to most of the Eclipse Modeling
tools, just go ahead and change the extension.

If you really really want to be foolish, probably because of some
misguided corporate policy that you would do better to get changed, you
should develop a plugin that ensures that all the required content type
registrations are in place for UML namespaces against the *.xml
extension and that you use no applications that register resource
factories for the *.xml extension. [If you don't know what the foregoing
means, you really do not want to do it.]

Regards

Ed Willink


On 01/06/2012 09:25, Hela Hakim wrote:
> Hello,
> I would like to change l'extension .UML (file extension with the
> papyrus) with the extension .XML.
> and thanks. :)
Re: .UML to .XML [message #879999 is a reply to message #879991] Fri, 01 June 2012 08:58 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

That is differently unwise.

One if the major purposes of the MDT/UML2 projects is to support XMI to
Java classes serialisation. This is a non-trivial activity given the
complexity of some of UML's magic subsetting, merging, redefining and
stereotyping capabilities. Why would you want to rewrite it all in an
inferior technology?

Regards

Ed Willink


On 01/06/2012 09:50, Hela Hakim wrote:
> Hello,
> Sorry,but i misunderstood your message.
> En fact ,I want to manipulate the fichier.UML via JDOM (through a Java
> class).
> Gold after my research I knew that for 'parsing' a file with JDOM it
> should be .XML not . UML .
Re: .UML to .XML [message #880010 is a reply to message #879994] Fri, 01 June 2012 09:21 Go to previous messageGo to next message
Hela Hakim is currently offline Hela HakimFriend
Messages: 20
Registered: May 2012
Junior Member
I can not be understood but to conclude :is the following statement:
SAXBuilder SXB = new SAXBuilder ();
try {
/ / Create a new document with JDOM XML file as argument
sxb.build document = (new File ("file.xml"));
}
but my file is file.uml not file .xml.
I hope you understand me.
Regards
Re: .UML to .XML [message #880014 is a reply to message #880010] Fri, 01 June 2012 09:26 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Hela,

SAX doesn't care about the extension of your file; you can use any file
name.


On 01/06/2012 11:21 AM, Hela Hakim wrote:
> I can not be understood but to conclude :is the following statement:
> SAXBuilder SXB = new SAXBuilder (); try { / / Create a new document
> with JDOM XML file as argument
> sxb.build document = (new File ("file.xml"));
> }
> but my file is file.uml not file .xml.
> I hope you understand me.
> Regards


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: .UML to .XML [message #880050 is a reply to message #880014] Fri, 01 June 2012 10:38 Go to previous message
Hela Hakim is currently offline Hela HakimFriend
Messages: 20
Registered: May 2012
Junior Member
thanks you very much for your help
Previous Topic:UML2EcoreConverter, default values and EAttribute.unsettable
Next Topic:UML2 4.0 Migration Guide
Goto Forum:
  


Current Time: Tue Apr 23 17:49:45 GMT 2024

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

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

Back to the top