def main(): s = Server("http://*****:*****@localhost:8080/exist/xmlrpc") d = { "data": urllib.urlopen("http://localhost:8081/status").read(), } res = s.xupdate("/db", Binary(upd % d)) if not res: s.parse("<data/>", "/db/pycoon-status")