pub fn element_at_key(elm: &element, key: &str) -> ElementResult