Hi,
I have a problem deserializing xml into objects.
my class structure:
orderHeader
order
orderDetail
orderHeader has an arraylist of [order]
order has an arraylist of [orderDetail]
orderHeader and the arraylist of [order] is filled, but the arraylist of [orderDetail] remains empty.
this is the code i use to deserialize:
What am i doing wrong ?
Thanks already
John
I have a problem deserializing xml into objects.
my class structure:
orderHeader
order
orderDetail
orderHeader has an arraylist of [order]
order has an arraylist of [orderDetail]
orderHeader and the arraylist of [order] is filled, but the arraylist of [orderDetail] remains empty.
this is the code i use to deserialize:
Code:
Dim serializer As New XmlSerializer(GetType(orderHeader))
Dim fs As New FileStream("c:\schipUbnOrder.xml", FileMode.Open)
Dim myOrderHeader As orderHeader
myOrderHeader = CType(serializer.Deserialize(fs), orderHeader)
Thanks already
John