Added an example for xml saving