unified schema generation to support schema with several root elements