Sujeet Suman

Sujeet Suman

  • 388
  • 4.1k
  • 1.5m

How to fetch xml data using LINQ to XML

Oct 23 2015 2:49 PM
How to read below XML structured file using LINQ to XML:
 
<Products>  
   <DriveType Value ="System Drives">
      <ProductType value="100001">    
          <Firmware id="001" AppVersion="01"/>    
          <Firmware id="002" AppVersion="02"/>   
      </ProductType>   
      <ProductType value="100002">
          <Firmware id="001" AppVersion="03"/>    
          <Firmware id="002" AppVersion="04"/>   
      </ProductType>;  
   </DriveType>  
   <DriveType Value ="Other Drives">   
      <ProductType value="100008">    
        <Firmware id="001" AppVersion="05"/>    
        <Firmware id="002" AppVersion="06"/>   
      </ProductType>   
      <ProductType value="1000012">    
        <Firmware id="001" AppVersion="07"/>   
        <Firmware id="002" AppVersion="08"/>   
     </ProductType>;  
   </DriveType> 
</<Products>>
 

Answers (1)