Extracted YAML→XML conversion from tm2