Norbert when I load magicMagritte and I tried the example I got an error because I got an object instead of text
visitMultipleOptionDescription: aDescription | options text | options := self object readUsing: aDescription. options notNil ifTrue: [ options do: [ :each | self writeText: each asString description: aDescription ] ] ^^^^^^^^^^^^ I added that but this is probably wrong. I will take some time to look deeper into. Stef On Jun 29, 2012, at 10:54 AM, Norbert Hartl wrote: > > Am 28.06.2012 um 21:15 schrieb Stéphane Ducasse: > >> Hi guys >> >> I would like to show in the magritte chapter I'm revisiting a bit more meat. >> I'm playing with magritte 30 and I would like to know if there is a way to >> save objects based on their magritte description. >> > Yes, there is. There is a description in an old blog post of mine [1]. Don't > be misled that magritte2 is mentioned there. It works as well with magritte3 > (thanks to Nick Ager). You can get it > > Gofer new > renggli: 'magritte3addons'; > package: 'ConfigurationOfMagritte3AddOns'; > load > > and load the default. > > In a nutshell: > > You add to your descriptions "beXmlAttribute" or "beXmlElement". Then you can > store an object with > > myObject magritteDescription toXml: myObject > > hope that helps, > > Norbert > > > [1] http://norbert.hartl.name/blog/magritte-xmlbinding/ > > > >