On 5 juin 2016, at 06:16, Tudor Girba
<tudor(a)tudorgirba.com> wrote:
Hi Serge, Peter etal,
I believe you are looking for an X/O mapper. This is indeed something that is dearly
missing in Moose, and indeed, the main reason we do not have something like this is that
we do not have an XSD parser.
Here is a paper that describes the X/O space:
Revealing the X/O impedance mismatch
Ralf Laemmel and Erik Meijer
On Jun 5, 2016, at 1:16 AM, Peter Uhnak
<i.uhnak(a)gmail.com> wrote:
So I did take a look at Serge's XMLs, and they really need XSD processor.
They are too loose to be processed as XMI — XMI is a subset of XML, and generic XML is
way too complex for the analyzer. (The result I got was way too deep (it generated a lot
of classes)).
Now I could modify it a bit/a lot to be able to generate better results, however I think
that a proper XSD processor would be better here.
I will need to think about how complex that would be, and of course if Monty has anything
to say, I'm all ears. :)
Peter
On Sat, Jun 04, 2016 at 07:54:35PM +0200, Peter
Uhnak wrote:
Hi,
XMI is a subset of XML with some more well-defined behavior.
I wrote a tool that can process XML files exhibiting certain XMI properties.
the repo is here:
https://github.com/peteruhnak/xmi-analyzer
I don't know if Usman had chance to work with it in practice, but if Synectique has
any feedback or feature requests then let me know.
You are right that if you have XML Schema (or model-compliant XMI), then processing the
XML can be fully automated.
Unfortunately implementing full support for that is quite a lot of work, that's why
my xmi-analyzer takes shortcuts.
I suggest you give it a try, or send me an example of your XML file and maybe we can
improve it.
XSD is wanted, but nowhere in sight, maybe Monty (current mastermind behind XML-Parser)
may have an idea of the complexity of it?
Peter
> On Sat, Jun 04, 2016 at 05:37:32PM +0100, Serge Stinckwich wrote:
>> On Sat, Jun 4, 2016 at 5:29 PM, stepharo <stepharo(a)free.fr> wrote:
>> Synectique paid Peter to offer a way to read in XMI files.
>>
>> Now I do not know the status and if this is what you are looking for.
>
> Unfortunately, this is not I'm looking for.
> The XML files I'm using are based on XML Schema and not on XMI.
>
> --
> Serge Stinckwich
> UCBN & UMI UMMISCO 209 (IRD/UPMC)
> Every DSL ends up being Smalltalk
>
http://www.doesnotunderstand.org/
> _______________________________________________
> Moose-dev mailing list
> Moose-dev(a)list.inf.unibe.ch
>
https://www.list.inf.unibe.ch/listinfo/moose-dev
_______________________________________________
Moose-dev mailing list
Moose-dev(a)list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev
"The coherence of a trip is given by the clearness of the goal."
_______________________________________________
Moose-dev mailing list
Moose-dev(a)list.inf.unibe.ch