Hi. I'm struggling with this Serializing of Data. and I've checked out the MSDN, and saw the Serializing an Array will make the out put like this:
So how exactly do I do that? The only code for that on the MSDN was:Code:<PurchaseOrder xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:xsd="http://www.w3.org/20001/XMLSchema"> <Items> <Item> <ItemID>aaa111</ItemID> <ItemPrice>34.22</ItemPrice> <Item> <Item> <ItemID>bbb222</ItemID> <ItemPrice>2.89</ItemPrice> <Item> </Items> </PurchaseOrder>
Can someone please direct me a good example for doing this type of serialization?Code:[VB.NET] Public Class PurchaseOrder public ItemsOrders () As Item End Class Public Class Item Public ItemID As String Public ItemPrice As decimal End Class




Reply With Quote