
Originally Posted by
nbrege
Thank you for the quick reply. You may not have noticed, but I edited my original post to add more info. The particular node I want to change may not always be in the 3rd node, so I think you would have to get the desired parent node by the value in the <Name> node. I hope that makes sense. My apologies for not being more precise with what I want to do...
Just change the query.
Code:
Dim ie As IEnumerable(Of XElement)
ie = From el In xe...<PartOverride> Where el.<Name>.Value = "Cab.Interior.PT" Select el Take 1
If ie.Count = 1 Then
ie(0).<Material>.Value = "123456789"
End If