Tim Mc - 2012-08-08

So I can save and load documents, manipulate values, and clear the value from an element and it gets saved as an empty element in the following forn: <foo/>.   However, I cannot figure out how to add a value correctly to an empty element so that the result is  <foo>bar</foo>.

I have spent a couple of days trying many different methods.

I can't seem to find a simple sample of how to do this with TinyXML-2.  There are plenty of examples with TinyXML, but there seems to be a pretty significant difference in the interfaces regarding this.

I am sure someone has done this, so if you could just post a simple code snippet, that would be great!