Fixed auth_by_api. Generate XML from default data