Hi there,
I think I'm lost in the XML attribute jungle in my attempt to
serialize/deserializing data that must be persistant, and any help is highly
appriciated.
I need to save this class in an XML file and it must be unicode formatted:
class classToSave
{
public string _dataString1 = ""; //must be saved
public Arrayelement[] _array = new arrayElement[0]; // must be saved
private string _fileName; // name of the XML file
public classToSave(string fileName)
{
_fileName = fileName;
/*** loadXML here ***/
}
public string dataString1
{
get
{
return _dataString1;
}
set
{
_dataString1= value;
/*** SaveXML here ***/
}
}
public arrayelement[] array
{
get
{
return _array;
}
set
{
_array = value;
/*** SaveXML here ***/
}
}
And the arrayelement looks like this:
public struct arrayElement
{
public int element1;
public double element2;
}
Thanks
Ole