I am trying to create an XML file using TinyXML2. While there are many examples and tutorials on loading, there seems to be very little on saving.
I basically want to end up with:
<node>text</node>
I know I can get the "node" parts by adding an element, but how do I set the text part? Element has a GetText
but I can find no SetText
. There is also an XMLText
class, but that has no methods for setting the text!