How do I modify the contents of an XElement?
- by voodoomsr
is there a simple way to modify the InnerXml of a XElement?
supose we have this extremely simple xml
<planets>
<earth></earth>
<mercurio></mercurio>
</planets>
and we want to append some xml that come from another source that comes like a string "<continents><america/><europa/>.....blablabla" into the earth node.
I read related questions but they talk about retrieving the innerxml of a XElement and i don't understand how "modify" the actual Xelement :(