Fixed some XML generation to be compatible with the pain.001.001.03 standard.