Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » import XML model by Xtext
import XML model by Xtext [message #651334] Sat, 29 January 2011 12:07 Go to next message
cyril  is currently offline cyril Friend
Messages: 5
Registered: October 2010
Junior Member
Is it possible that an Xtext editor use values belonging to an XML document?

Thanks
Re: import XML model by Xtext [message #651336 is a reply to message #651334] Sat, 29 January 2011 12:14 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
hi, with use you mean reference right? yes this is possible but the work to do highly depends on the kind of xml you refernce is of. if you have already an ecore resource factory for it it is quite easý. if the xml is xsd based you can leverage xsd to ecore.

if you have this done then you can do something so´mthing similar as Xtext does for .ecore files in the plugins org.eclipse.xtext.ecore, org.eclipse.xtext.ui.ecore

or do you mean import in sense of transform. id write an xslt.

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Sat, 29 January 2011 12:29]

Report message to a moderator

Previous Topic:Using other attribute than "name" for references
Next Topic:importURI resolving problem
Goto Forum:
  


Current Time: Fri Apr 26 10:01:00 GMT 2024

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

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

Back to the top