Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Ecore Tools » Top xml element in ecore(How to find Top xml element in ecore?)
Top xml element in ecore [message #630882] Tue, 05 October 2010 12:55 Go to next message
Volodymyr Gryshko is currently offline Volodymyr GryshkoFriend
Messages: 28
Registered: July 2009
Junior Member
Hello,
ecore file specifies model.
model then used to create xml.
I need to figure out based on ecore file what would be top element in XML.
Is it possible at all?
Im loading ecore like:

ResourceSet rs = new ResourceSetImpl();
Resource resource = rs.getResource(URI.createURI(path), true);
TreeIterator<Object> allContents = EcoreUtil.getAllContents(resource, true);
Im getting lots of EClasses EDataTypes etc and IM pretty much lost there...
Re: Top xml element in ecore [message #631072 is a reply to message #630882] Wed, 06 October 2010 06:41 Go to previous message
Volodymyr Gryshko is currently offline Volodymyr GryshkoFriend
Messages: 28
Registered: July 2009
Junior Member
OK, I just figured out that ecore tools actually just about GMF editor to ecore.
But maybe you guys know where can I see ecore specification?
Previous Topic:How to add child nodes using the reflective API of EMF?
Next Topic:How to override the label provider of a referenced model element
Goto Forum:
  


Current Time: Fri Mar 29 14:02:43 GMT 2024

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

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

Back to the top