Added to asDomElem(Document doc) method in AlarmEntry to account for
newly added enum DeviceType.