I have a class that contains a list of properties which serializes just fine. However I need one of those properties to contain a collection of another class to give me sub classes
Example XML
<VideoOptions>
<property1>value1</property1>
<property2>value2</property2>
<property3>
<item>
<property1>value1</property1>
</item>
<item>
<property1>value1</property1>
</item>
</property3>
</VideoOptions>
I'm not sure how to accomplish that when I serialize the main class.
Currently I use this command to serialize my class
Dim oXS As XmlSerializer = New XmlSerializer(GetType(VideoOptions))
Dim strW As New StringWriter
oXS.Serialize(strW, Me)
VideoOptionsAsXML = strW.ToString