Yes. I did that. But when i try to serialize whole list i got an error.
I tried to find solution and something closest to it is at:
http://www.devhood.com/tutorials/tut...utorial_id=236
Thank you.
"Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard.caspershouse.com> wrote in
message news:O7gfsViyDHA.2448@TK2MSFTNGP12.phx.gbl...[color=blue]
> Boris,
>
> Are you iterating through each element of the ArrayList and[/color]
serializing[color=blue]
> them? It appears that is what you are doing. You want to change this so
> that you serialize only the ArrayList itself, not the elements in it.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> -
mvp@spam.guard.caspershouse.com
>
> "Boris" <boris@portal.co.yu> wrote in message
> news:O0HKk9YyDHA.2000@TK2MSFTNGP11.phx.gbl...[color=green]
> > Thanks Nicholas,
> > but now i have another problem. When i serialize my ArrayList that is[/color]
> having[color=green]
> > more than one object i am getting this error message in IE:
> >
> >
> >
> > XML document must have a top level element. Error processing resource
> > 'file:///D:/Documents and Settings/Administrator/My Documents/Visual[/color]
> Studio[color=green]
> > Projects/ConsoleApplication38/bin/Debug/osoba.xml'.
> >
> > After i had opened my xml file i saw that every object from ArrayList[/color]
> makes[color=green]
> > one top level element and file looks like this:
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <NewDataSet xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > <name>Mike</name>
> > <surname>Jones</surname>
> > </NewDataSet>
> > <?xml version="1.0" encoding="utf-8"?>
> > <NewDataSet xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > <name>John</name>
> > <surname>Doe</surname>
> > </NewDataSet>
> >
> > How can serialize ArrayList inside one <NewDataSet> ... </NewDataSet> ?
> >
> > Greets.
> >
> >
> >
> >[/color]
>
>[/color]