Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » [XPAND]Transform XML to TEXT
[XPAND]Transform XML to TEXT [message #895971] Mon, 16 July 2012 13:16 Go to next message
Eclipse UserFriend
Hello,

I want to use xpand to transform .xml file to .txt file through EMF. I'm the very beginner with EMF and xpand. My xml file looks like <spirit:component>balabalabala</spirit:component>. Here I want to ask how to set the prefix "spirit" in the xpand template.

Best Regards
YM
Re: [XPAND]Transform XML to TEXT [message #896077 is a reply to message #895971] Tue, 17 July 2012 03:58 Go to previous messageGo to next message
Eclipse UserFriend
If XML is your input format you will need an XSD defining the structure of the XML. Then take the XSD Metamodel in your workflow configuration. See example projects here: http://git.eclipse.org/c/m2t/org.eclipse.xpand.git/tree/examples

Kind regards,
~Karsten
Re: [XPAND]Transform XML to TEXT [message #896150 is a reply to message #896077] Tue, 17 July 2012 08:22 Go to previous message
Eclipse UserFriend
Hello Karsten,

the project is based on the EMF. There are several XSD file transformed into EMF model. I finally got it. It doesn't matter whether there is prefix ahead of the real metadata or not. The path way is the same, e.x: component.design.interface. ... .
Thank You all the same.

BR
Yumin
Previous Topic:[Acceleo] Collection whose elements are all different
Next Topic:[Xpand] Running MWE workflow with Xpand generator outside eclipse?
Goto Forum:
  


Current Time: Mon Jul 14 15:01:31 EDT 2025

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

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

Back to the top