Thanks Nicholas,
but now i have another problem. When i serialize my ArrayList that is having
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 Studio
Projects/ConsoleApplication38/bin/Debug/osoba.xml'.
After i had opened my xml file i saw that every object from ArrayList makes
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.