Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

Creating object array from a xml tag

$
0
0

Hi,

I have simple XML...

<Change>
 <Product>
  <Type>Change</Type>
   <ID  Key="4367"/>
   <Field Name="Field1">Caffeine-free</Field>
   <Field Name="Field2">24.3</Field>
 </Product>
 <Product>
   <Type>New</Type>
   <ID  Key="4367"/>
   <Field Name="Field1">Caffeinee</Field>
   <Field Name="Field2">24.3</Field>
 </Product>
</Change>

Based on XML tags mentioned above, how can i create array of object like below

is it possible to create array like this...

I am using LINQ with XML.

Pleas suggest.

Thanks in advance



Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>