79361531

Date: 2025-01-16 12:18:25
Score: 1.5
Natty:
Report link

XPath queries, it doesn't modify. As the name suggests, XPathSelectElements returns the nodes you want. You'll have to process each one of them and modify the correct child elements. The unconventional XML schema makes this harder than needed -Templates,Source, Comments etc should all be elements, not values in a generic attribute. No flexibility is gained by the current format.

LINQ is also a query, not a modification language, it doesn't modify. No matter what language you use you'll have to iterate over the feature elements they produce and for each one, retrieve the name or driver children and modify their value attribute.

Comment from Panagiotis Kanavos

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mark Mullen