linq to xml - XDocument replace all node value with lower case -
i need make values within xdocument lower case. what's best way of doing this?
to clarify, want change text values, without specifying names of nodes.
you like:
doc.document .descendantnodes() .oftype<xtext>() .tolist().foreach(x => x.value = x.value.tolower());
Comments
Post a Comment