Eelco Hillenius wrote:
It should also work to add new schemas to the list as you write the file, before adding records of each type.How would that work? Create a new writer (and discard the old one) based on the union but reuse the output stream?
Glancing at the code, it looks like one can simply keep a pointer to the list and add elements to it, but, again, I've not yet tested this. If you need to rely on this feature, we should add a unit test, to make sure it continues to work.
Doug
