moovweb/gokogiri

Consider making xmlNode.Serialize public

Closed this issue · 2 comments

While the defaults for ToXml and ToHtml are sensible, I need to be able to specify the format flags to match various standards. Rather than proliferate To* functions, it seems reasonable to make Serialize part of the xml.Node interface.

I have existing changes that can be turned into a pull request if there is consensus on this API change.

Opened pull request #43 to address this issue.