add function to convert DCase to xml