add variants of SetText() to support types
diff --git a/tinyxml2.cpp b/tinyxml2.cpp
index 0338beb..cb26e00 100755
--- a/tinyxml2.cpp
+++ b/tinyxml2.cpp
@@ -1270,6 +1270,47 @@
 	}

 }

 

+

+void XMLElement::SetText( int v ) 

+{

+    char buf[BUF_SIZE];

+    XMLUtil::ToStr( v, buf, BUF_SIZE );

+    SetText( buf );

+}

+

+

+void XMLElement::SetText( unsigned v ) 

+{

+    char buf[BUF_SIZE];

+    XMLUtil::ToStr( v, buf, BUF_SIZE );

+    SetText( buf );

+}

+

+

+void XMLElement::SetText( bool v ) 

+{

+    char buf[BUF_SIZE];

+    XMLUtil::ToStr( v, buf, BUF_SIZE );

+    SetText( buf );

+}

+

+

+void XMLElement::SetText( float v ) 

+{

+    char buf[BUF_SIZE];

+    XMLUtil::ToStr( v, buf, BUF_SIZE );

+    SetText( buf );

+}

+

+

+void XMLElement::SetText( double v ) 

+{

+    char buf[BUF_SIZE];

+    XMLUtil::ToStr( v, buf, BUF_SIZE );

+    SetText( buf );

+}

+

+

 XMLError XMLElement::QueryIntText( int* ival ) const

 {

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