On page https://golang.org/pkg/encoding/xml/#MarshalIndent
there is an example how to write to a file one line of XML, but there is no explanation if I have more than one line. In Go are you supposed to write one line at a time like in C++ or everything at the end? I.e. if I have two persons in the XML file I want to generate do I repeat the below command every time I add a new line: os.Stdout.Write(output) -- 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.