add a method to help get the size of the XML file in memory
diff --git a/tinyxml2.h b/tinyxml2.h
index 352b591..35b61af 100644
--- a/tinyxml2.h
+++ b/tinyxml2.h
@@ -1371,6 +1371,10 @@
 		the XML file in memory.

 	*/

 	const char* CStr() const { return buffer.Mem(); }

+	/**

+   		Return the size of the XML file in memory

+  	*/

+  	const int SizeOfCStr()const{ return buffer.Size(); }

 

 private:

 	void SealElement();