I was slow to do so because I am playing with idea that this perhaps could be somehow 'generalized', e.g. you should be able to produce / consume XML this way as well (some sort of limited XML without attributes) or anything that resembles JSON array/object/string/number model.
In any case, thanks, this will speed things up. Going to check your code now