refactored xmlfile out from CostSplitCalculator.