xml formating function addition