Reuse "is element with name" check
diff --git a/tinyxml2.h b/tinyxml2.h
index fbfe4f6..986431b 100755
--- a/tinyxml2.h
+++ b/tinyxml2.h
@@ -908,6 +908,7 @@
     void Unlink( XMLNode* child );

     static void DeleteNode( XMLNode* node );

     void InsertChildPreamble( XMLNode* insertThis ) const;

+    const XMLElement* ToElementWithName( const char* name ) const;

 

     XMLNode( const XMLNode& );	// not supported

     XMLNode& operator=( const XMLNode& );	// not supported