1. A method for communicating with a device, the method comprising: receiving an XML event from an application; determining a set of calls for an interface associated with a device based on the XML event; and invoking the set of determined calls to control the device.