implement save xml function and reading xml file into memory (not auto
filling yet)