Add SetText() as analog to GetText().
diff --git a/tinyxml2.cpp b/tinyxml2.cpp
index 5880557..95075a5 100755
--- a/tinyxml2.cpp
+++ b/tinyxml2.cpp
@@ -1260,6 +1260,16 @@
 }

 

 

+void	XMLElement::SetText( const char* inText )

+{

+	if ( FirstChild() )

+		FirstChild()->SetValue( inText );

+	else {

+		XMLText*	theText = GetDocument()->NewText( inText );

+		InsertFirstChild( theText );

+	}

+}

+

 XMLError XMLElement::QueryIntText( int* ival ) const

 {

     if ( FirstChild() && FirstChild()->ToText() ) {