xml client_package function