Skip to content

Commit

Permalink
Merge pull request #45 from Tim-ats-d/main
Browse files Browse the repository at this point in the history
Fix XML namespacing in Yocaml_syndication.
  • Loading branch information
xhtmlboi authored Nov 15, 2023
2 parents 61067d4 + 34738ee commit ca895a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/yocaml_syndication/yocaml_syndication.ml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ module Atom = struct
"<?xml version=%S encoding=%S?>%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 =
Expand Down

0 comments on commit ca895a6

Please sign in to comment.