semi-functional xml and downloading