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 08:55 Go to next message
Volodymyr Gryshko is currently offline Volodymyr Gryshko
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 02:41 Go to previous message
Volodymyr Gryshko is currently offline Volodymyr Gryshko
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: Wed Apr 23 19:50:15 EDT 2014

Powered by FUDForum. Page generated in 0.11913 seconds