suhas setty

suhas setty

  • NA
  • 128
  • 52.3k

using Deserialize

Sep 7 2015 5:59 AM
how to deserialize the below xml :
Need to read AdapterName,ConnectorIndex and ViewType
 
<?xml version="1.0" encoding="utf-8"?>

<MonitorConfiguration>
<System Type="1"> </System>
<Adapters>
<Adapter Name="P1" ></Adapter>
<Monitors>
<Monitor ConnectorIndex="P1" ViewType="C1"></Monitor>
<Monitor ConnectorIndex="P2" ViewType="C2"></Monitor>
<Monitor ConnectorIndex="P2" ViewType="C2"></Monitor>
<Monitor ConnectorIndex="P2" ViewType="C2"></Monitor>

</Monitors>
<Adapter Name="P2" ></Adapter>
<Monitors>
<Monitor ConnectorIndex="P4" ViewType="C3"></Monitor>
<Monitor ConnectorIndex="P5" ViewType="C5"></Monitor>
<Monitor ConnectorIndex="P6" ViewType="C6"></Monitor>
<Monitor ConnectorIndex="P7" ViewType="C7"></Monitor>
</Monitors>
</Adapters>
</MonitorConfiguration>

 

Answers (2)