read json and xml, generate xml classes