Added small fixed for merging several XML files

Change-Id: I3890fa78e33dbb5dbfbee44708c32647c4efecdc