diff --git a/lib/yocaml_syndication/yocaml_syndication.ml b/lib/yocaml_syndication/yocaml_syndication.ml index ffdb269..a452da4 100644 --- a/lib/yocaml_syndication/yocaml_syndication.ml +++ b/lib/yocaml_syndication/yocaml_syndication.ml @@ -47,7 +47,10 @@ module Atom = struct "%s" xml_version encoding - (Syndic.Atom.to_xml feed |> Syndic.XML.to_string) + (Syndic.Atom.to_xml feed + |> Syndic.XML.to_string ~ns_prefix:(function + | "http://www.w3.org/2005/Atom" -> Some "" + | _ -> Some "http://www.w3.org/2005/Atom")) ;; let to_atom ?xml_version ?encoding feed =