pub fn parse_enum<'a>(
s: &str,
whitelist: &[&'a str],
) -> Result<&'a str, XmlError>Expand description
Enum whitelist check per Spec §7.1.4 Tab.7.1 (enum values are string literals from DCPS-IDL, not numeric).
§Errors
XmlError::BadEnum if the value is not contained in the whitelist.