update xml generator for models