okay, it seems that one needs to know the number of nodes in advance... so we need just a pre-pass to estimate the size of the XML file, right? Or am i getting it wrong.