I'm trying to Marshal XML where an element has mixed content: https://www.w3.org/TR/REC-xml/#sec-mixed-content
I tried just using []interface{} but if I put in just a string, Marshal surrounds each string with the name of the slice: https://play.golang.org/p/erh3mQmrZD I'm trying to get the output to be: <root> <element1>foo</element1> hello <element2>bar</element2> world </root> Any ideas? Thanks, Scott -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.