Added xml encode function and committed data file for server i/o