save new objects to xml.and restore them.