let get_att ?(required=true) atts name = let name = String.lowercase name in try snd (List.find (fun (s,_) -> String.lowercase s = name) atts) with Not_found -> if required then raise Not_found else ""