How can I Serialize and Deserialize an Xml ?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hello msdn,
How can I serialize and deserialise a class object in the following format?
<pre class="prettyprint <ViewModels>
<ViewModel Name="OrderCustomerViewModel" Type="Grid
<Property Name="OrderId" Type="int32" Nullable="False" EditorType="TextBox"/>
<Property Name="ShippedDate" Type="DateTime" Nullable="True" EditorType="TextBox"/>/>
<Property Name="ShipName" Type="string" Nullable="True" EditorType="TextBox"/>/>
<Property Name="CustomerCity" Type="string" Nullable="True"/>
<Property Name="CustomerContactName" Type="string" Nullable="True"/>
</ViewModel>
<ViewModel Name="OrderViewModel" Type="Grid
<Property Name="OrderId" Type="int32" Nullable="False" EditorType="TextBox"/>
<Property Name="ShippedDate" Type="DateTime" Nullable="True" EditorType="TextBox"/>/>
<Property Name="ShipName" Type="string" Nullable="True" EditorType="TextBox"/>/>
</ViewModel>
</ViewModels>[/code]
Could any one give me a sample application for this?<br/>

<br/>
<hr class="sig salampv.07

View the full article
 
Back
Top