pub fn format_xml_like_error(format: &str, error: Error) -> EcoString
Format a user-facing error message for an XML-like file format.