Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Importing XML schema as metamodel?
Importing XML schema as metamodel? [message #61447] Mon, 20 July 2009 11:45 Go to next message
Eclipse UserFriend
Originally posted by: ilyas.keser.gmail.com

Hi @all,

is it possible to import a XML Schema as metamodel and use its elements
in the Xtext grammar? The generated editor should be used to generate
XML files.

Regards,
ILyas
Re: Importing XML schema as metamodel? [message #61471 is a reply to message #61447] Mon, 20 July 2009 11:53 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ilyas


It is possible and documented in the Xtext User Guide:
http://www.eclipse.org/Xtext/documentation/0_7_0/xtext.html# grammarImport

Regards, Helko
Re: Importing XML schema as metamodel? [message #61493 is a reply to message #61447] Mon, 20 July 2009 12:01 Go to previous messageGo to next message
Eclipse UserFriend
Oh sorry. I had not seen that you meant XML Schema.

With XSD Ecore Converter (Plugin available at UpdateSite Galileo -
http://download.eclipse.org/releases/galileo) you can transform a XSD into
an appropriate Ecore and vice versa.

Regards Helko

Ilyas Keser wrote:

> Hi @all,

> is it possible to import a XML Schema as metamodel and use its elements
> in the Xtext grammar? The generated editor should be used to generate
> XML files.

> Regards,
> ILyas
Re: Importing XML schema as metamodel? [message #61528 is a reply to message #61493] Mon, 20 July 2009 12:21 Go to previous message
Eclipse UserFriend
Originally posted by: ilyas.keser.gmail.com

Hi Helko,

I could convert my XSD file to an Ecore file.

Thanks for your help.
ILyas

Helko Glathe schrieb:
> Oh sorry. I had not seen that you meant XML Schema.
>
> With XSD Ecore Converter (Plugin available at UpdateSite Galileo -
> http://download.eclipse.org/releases/galileo) you can transform a XSD
> into an appropriate Ecore and vice versa.
>
> Regards Helko
>
> Ilyas Keser wrote:
>
>> Hi @all,
>
>> is it possible to import a XML Schema as metamodel and use its
>> elements in the Xtext grammar? The generated editor should be used to
>> generate XML files.
>
>> Regards,
>> ILyas
>
>
>
>
>
>
Previous Topic:[Xtext] Matching Value for a locale Rule not allowed in other Rules?
Next Topic:[Xtext] Bidirectional properties handled incorrectly?
Goto Forum:
  


Current Time: Thu May 08 10:21:33 EDT 2025

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

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

Back to the top