device state generated in xml format.