Click here to Skip to main content
15,902,276 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Xml data:
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>>
Posted
Updated 24-Oct-15 3:30am
v7
Comments
Maciej Los 23-Oct-15 8:00am    
This is not a question at all!
What have you tried till now? Where are you stuck?
Maciej Los 23-Oct-15 9:26am    
And what are you trying to achieve? What's wrong with your code? Please, be more specific and provide more details about your issue.

1 solution

There are good tutorials and examples available online. Hope these will help you to extract exact data (you have not mentioned what exactly you are looking for):
http://www.dotnetcurry.com/linq/564/linq-to-xml-tutorials-examples[^]
https://msdn.microsoft.com/en-us/library/bb943906.aspx[^]

Please first try with those examples and then let is know in case of any specific issue.
Thanks.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900