Could you share your code which isn't working? Here's a simple example of how you would do something like that, but not knowing your code, it might not be helpful. https://play.golang.org/p/H-9eCTYJxTA
On Thu, Dec 12, 2019 at 9:57 AM paresh patil <pareshpatil...@gmail.com> wrote: > Hi, > > > I'm new to Go and finding it interesting to learn. I'm not a developer or > programmer, but I have interest in learning to code > > I'm working on a project to convert csv file to xml file. The code > executes and I'm able to generate a xml file. But the file is not in the > expected format. I seek some help > > I'm expecting the below results in xml output: > > > <Manifest> > > <Header> > > </Field1> > > </Field2> > > </Header> > > <Item1> > > </Name> > > </Address> > > </Country> > > </Item1> > > <Item2> > > </Name> > > </Address> > > </Country> > > </Item2> > > </Manifest> > > > However what I get is as below: > > > <Manifest> > > <Header> > > <Field1> > > <Field2> > > </Header> > > <Item1> > > </Name> > > </Address> > > </Country> > > </Item1> > > </Manifest> > <Manifest> > > <Header> > > <Field1> > > <Field2> > > </Header> > > <Item2> > > </Name> > > </Address> > > </Country> > > </Item2> > > </Manifest> > > > Please help > > -- > 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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/085e7f7b-105e-48f1-9e09-55f0b5e40136%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/085e7f7b-105e-48f1-9e09-55f0b5e40136%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CA%2Bv29LtaTQPSVPh5fHVaQKWObgPYFw%2Bdjii7yDiK4prL5ou%3D5A%40mail.gmail.com.