mlhim-owners team mailing list archive
-
mlhim-owners team
-
Mailing list archive
-
Message #00416
Re: Code generation from XML Schemas
Hi Eduardo,
You didn't specify what kind of problems you had. I have generated Python
code using Acceleo. The thing that Acceleo gives us is that it is one tool
to learn. Not a separate for each use. Since you have had this project
for more than a year now, I assume you know that Acceleo is a
model-to-text tool that is template driven. So all you need to do is
create a template for each output grammar.
While looking around for separate tools to be used may be intellectually
stimulating, it is not very productive though.
Cheers,
Tim
-------- Mensagem original -------- Assunto: Code generation from XML
> Schemas Data: Sat, 03 Mar 2012 18:47:44 +0100 De: Eduardo César
> <eduardo.cesar@xxxxxxx> <eduardo.cesar@xxxxxxx> Para:
> mlhim-specs@xxxxxxxxxxxxxxxxxxx
>
> Hi Tim,
>
> I sent a message to Luciana about code generation from XML Schemas and I reproduce a excerpt here:
>
> -----
> Andei pesquisando por aí e me parece que EMF + Acceleo não é muito
> adequado para gerar código python. Estou olhando um outro módulo do
> eclipse chamado XText (que parece melhor que o Acceleo pra gerar java
> também).
>
> O Tim colocou lá no documento:
> 3) Generate XML Schemas from Ecore model.
> Acho que é o contrário, seria para gerar ecore model a partir de xml
> schemas. Mas só pra confirmar, posto aqui.
>
> Uma ferramenta bacana pra gerar código python a partir de XSDs é o
> XMLBeans. Talvez seja uma opção pra gente usar ao invés de
> Eclipse+EMF+(Acceleo|XText)
>
> ---
>
> I had some problems generating python code from the Acceleo in Eclipse. Thinkering about that I found out that there is another similar aproach using Xtext. Maybe we could try this one.
>
> I was not sure about the generation of XML Schemas from ecore models, I could not find any information regarding this topic. Would you have any direction?
>
> And finally, I found out a good tool to generate Java code from XSD file, it is called XMLBeans. I see that it could be an alternative instead using Eclipse+EMF+(Acceleo|XText).
>
>
> Regards,
> Eduardo
>
>
>
>
> --
> ============================================
> Timothy Cook, MSc +1 713 254 3643
> LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
> Skype ID == timothy.cook
> Academic.Edu Profile: http://uff.academia.edu/TimothyCook
>
--
============================================
Timothy Cook, MSc +1 713 254 3643
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
Skype ID == timothy.cook
Academic.Edu Profile: http://uff.academia.edu/TimothyCook
Follow ups
References