Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » merging XML files(Is there a way to merge XML files similar to JMerge)
merging XML files [message #495875] Fri, 06 November 2009 13:41 Go to next message
Ranjith Chungath is currently offline Ranjith ChungathFriend
Messages: 15
Registered: July 2009
Junior Member
I would like to know if we can merge XML files(say plugin.xml) similar to the Java merge(using @generated).

Suppose I create a Plugin.xmljet and generate the plugin.xml with it. Let's say a developer changed the generated plugin.xml manually. Is there a way to control what gets merged if it is re-gnerated?

I saw a JDOMJNode parallel to ASTJNode in emf.codegen plugin. Is that in any way used for merging XML files? Wild guess Smile

But I don't see a XMLMerger though thereseem to exist a PropertyMerger......

Thanks in Advance,
Ranjith
Re: merging XML files [message #495879 is a reply to message #495875] Fri, 06 November 2009 13:47 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
Ranjith,

Commetns below.

Ranjith Chungath wrote:
> I would like to know if we can merge XML files(say plugin.xml) similar
> to the Java merge(using @generated).
I imagine the same ideas could be applied.
> Suppose I create a Plugin.xmljet and generate the plugin.xml with it.
> Let's say a developer changed the generated plugin.xml manually. Is
> there a way to control what gets merged if it is re-gnerated?
We've not implemented something like that yet.
>
> I saw a JDOMJNode parallel to ASTJNode in emf.codegen plugin. Is that
> in any way used for merging XML files? Wild guess :)
No, it's only good for .java files.
> But I don't see a XMLMerger though thereseem to exist a
> PropertyMerger......
Yes, we've not written one yet. It would be cool to have one.
>
> Thanks in Advance,
> Ranjith


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: merging XML files [message #495895 is a reply to message #495875] Fri, 06 November 2009 14:37 Go to previous messageGo to next message
Ranjith Chungath is currently offline Ranjith ChungathFriend
Messages: 15
Registered: July 2009
Junior Member
Thanks Ed,

Are there any good examples of how the xml merging can be done in the best way currently given that there is no XMLMerger kind of feature available.

Ranjith
Re: merging XML files [message #495946 is a reply to message #495895] Fri, 06 November 2009 18:22 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
Ranjith,

There are no examples. You might look closely at the JMerger's design.
It's relatively straightforward.


Ranjith Chungath wrote:
> Thanks Ed,
>
> Are there any good examples of how the xml merging can be done in the
> best way currently given that there is no XMLMerger kind of feature
> available.
> Ranjith


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: merging XML files [message #495967 is a reply to message #495875] Fri, 06 November 2009 19:43 Go to previous message
Ranjith Chungath is currently offline Ranjith ChungathFriend
Messages: 15
Registered: July 2009
Junior Member
Thanks Ed,

I will check that up...

Ranjith
Previous Topic:Why not register an adapterfactory with Platform?
Next Topic:EMF/CDO Multi-threaded server process
Goto Forum:
  


Current Time: Wed Sep 25 02:25:07 GMT 2024

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

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

Back to the top