Please modify your code to write XML so that the TXL file is pretty printed (and where possible, order of elements is stable).
The reason for this is that when one saves changes to a model, and then checks the model into a source control system, the above steps assure you get a relatively minimalistic ‘diff’ displayed.