Treeview save changes

Hi, I’m new in the forum. Reading your guides I can’t understand how to save the changes that I made in a treeview. I use load(“treeview.xml”) but than how can I save the changes?
Thanks a lot for the reply.