I have xml file like this:
I need to find defect number first and the create a xml file for it. So my output should have two xml files 1458.xml and 1459.xml.
1458.xml should contain :
1459.xml should contain :
Please let me know the best approach using c# to do this.

VulpesRank #55 · 29.2K reputationPosted Jan 3, 2012, 6:53 AM EST
then the following LINQ to XML code should do what you want:
maan11 reputationPosted Jan 3, 2012, 7:00 AM EST