toXMl: part 1