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

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -