Main XML and zip functionality.