Hi Sebastian,

The primary strategy is to convert the code to subElementsFrom:do:, but it doesn't work for everything. I described the challenges and strategies in the blog post under the "Gory Details" heading.

In general, you'll probably need to find a way to split instantiation from state restoration. Instantiate the object first (when you first see the tag), then restore its state as you traverse sub-elements of the XML.

Also, the float test that you were fighting is a bad test case. Change it to something like:

| original restored |
original := 42.42.
restored := Object readSixxFrom: object sixxString.
self assert: original class == restored class.
self assert: (original - restored) abs < 0.00001

--
Ken Treis
Miriam Technologies, Inc.
(866) 652-2040 x221

On Aug 18, 2014, at 9:05 AM, Sebastian Sastre <sebastian@flowingconcept.com> wrote:

ah sorry duplicate Ken, good to know

What sixx seems to be expecting is the sub elements of the current element

Is there any strategy that comes to your mind about making the pullParser to return elements/ satisfy that?

from iPad

On 18/08/2014, at 12:26, Ken Treis <ken@miriamtech.com> wrote:

Thanks Sebastian. I'm on the Pharo list too.

--
Ken Treis
Miriam Technologies, Inc.
(866) 652-2040 x221

On Aug 18, 2014, at 5:26 AM, Sebastian Sastre <sebastian@flowingconcept.com> wrote:

cc/

from iPad

Begin forwarded message:

From: Sebastian Sastre <sebastian@flowingconcept.com>
Date: 17 de agosto de 2014 20:35:49 BRT
To: Pharo Development List <pharo-dev@lists.pharo.org>
Subject: [Pharo-dev] Deep SIXX
Reply-To: Pharo Development List <pharo-dev@lists.pharo.org>

Hey guys,

Thanks to Ken Treis we might have a (big) stream of SIXX coming into or going out of Pharo.

I�m sharing progress of the port here before I can do the contribution PR to Masashi:

To load the code take a fresh Pharo and do:

Gofer it
squeaksource: 'MetacelloRepository';
package: 'ConfigurationOfSIXX';
load.

(Smalltalk at: #ConfigurationOfSIXX) project latestVersion load.

and then load the package from here (which is a merge from Masashi�s and Ken�s fork plus what I�ve patched):

I�m very close to make this to start being useful.

I�m currently stuck in getting this test to pass:

testFloat

self should:[ 42.42 = (Object readSixxFrom: 42.42 sixxString) ]
Any ideas on making 
#initializeIndexFieldsFromSixxElement: sixxElement context: aDictionary 

work with the PullParser?