Hi Everyone…
I’m working with XML and have the following questions. Finding challenging in traversing the xml document… The requirement I have is that I need to
- Update Value for every “First Child Under Task”
- Delete 2nd and 3rd… nnnn Text Element from Task
I have de-serialized my xml and I have an XMLDocument with type XDocument already…
My XML
<Document>
<Task>
<Text>This is an Example </Text> <!-- value of this needs to be udpated -->
<Text>This is an Example </Text> <!-- This needs to be deleted -->
<Text>This is an Example </Text> <!-- This needs to be deleted -->
<Text>This is an Example </Text> <!-- This needs to be deleted -->
</Task>
<Task>
<Text>This is an Example </Text> <!-- value of this needs to be udpated -->
<Text>This is an Example </Text> <!-- This needs to be deleted -->
<Text>This is an Example </Text> <!-- This needs to be deleted -->
<Text>This is an Example </Text> <!-- This needs to be deleted -->
<Text>This is an Example </Text> <!-- This needs to be deleted -->
</Task>
<Task>
<Text>This is an Example </Text> <!-- value of this needs to be udpated -->
</Task>
</Document>
Any help is appreciated… thanks