Implment xml client. bugfix reference.