turn enum XmlType into enum class