How do I write the Device ID and Mac Address to an XML file on the SD Card? Is that possible?

Solved

How do I write the Device ID and Mac Address to an XML file on the SD Card? Is that possible? 

Here is what I have so far from, but i'm not sure how to get this in a XML file on the device:

function getDeviceId() {
return mobicontrol.device.id;
}

var deviceId = getDeviceId();
mobicontrol.log.info("Device ID: " + deviceId);
a year ago
Android Scripting
ANSWERS