Updated DataLogger to use XML properly