From a317bd66a65642c9373efdcc50a7157300dc3d01 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Mon, 8 Dec 2014 10:35:37 +0300 Subject: [PATCH] Resolve issue 176 --- tinyxml2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinyxml2.h b/tinyxml2.h index a5d145b..266efc7 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -1766,7 +1766,7 @@ private: @verbatim XMLHandle docHandle( &document ); - XMLElement* child2 = docHandle.FirstChild( "Document" ).FirstChild( "Element" ).FirstChild().NextSibling().ToElement(); + XMLElement* child2 = docHandle.FirstChildElement( "Document" ).FirstChildElement( "Element" ).FirstChildElement().NextSiblingElement(); if ( child2 ) { // do something useful