breaking out duties between xml parsing and saving data