lmurillo
Member
- Joined
- Feb 3, 2010
- Messages
- 7
- Programming Experience
- 1-3
I need some assistance with creating an XML file based off an array that I have.
In the application I have a class named ticketTable, which is basically an array composed of ticketData objects.
I've created an array, called virtualTable, which contains one or more arrays of the ticketTable type and the ticketTable arrays contain one or more objects of the ticketData type.
Hopefully I'm explaining myself correctly.
I tried to serialize the data to an XML file but it turns out that since the constructor of ticketTable and ticketData require parameters the serialization fails with the following error
ILC_Report_Tool.ticketTable cannot be serialized because it does not have a parameterless constructor.
So how can I save the data in a XML file and be able to recreate the array when loading the file again?
In the application I have a class named ticketTable, which is basically an array composed of ticketData objects.
I've created an array, called virtualTable, which contains one or more arrays of the ticketTable type and the ticketTable arrays contain one or more objects of the ticketData type.
Hopefully I'm explaining myself correctly.
I tried to serialize the data to an XML file but it turns out that since the constructor of ticketTable and ticketData require parameters the serialization fails with the following error
ILC_Report_Tool.ticketTable cannot be serialized because it does not have a parameterless constructor.
So how can I save the data in a XML file and be able to recreate the array when loading the file again?