turn enum XmlDataType into enum class