I want to set the value/children of an element that may or may not already exist. If the element doesn't exist, I want to have it automagically created for me.
This way, my code only has to worry about the contents of the element... not whether or not it already exists. (By the time I'm done with it, it's guaranteed to exist).
Does this functionality already exist in LINQ-to-XML? I haven't found it yet, and am considering writing my own method.