Made adjustments to support posting XML