added ts2xml into external