rename attributes to CamelCase and add XML checking before generation