diff --git a/src/wraplibxml.cpp b/src/wraplibxml.cpp index 7c3217b..afe21ce 100755 --- a/src/wraplibxml.cpp +++ b/src/wraplibxml.cpp @@ -356,6 +356,7 @@ bool WrapLibxml::xpath ( const std::string& path, const std::string& fileName ) output += ( const char * ) xmlBufferContent ( bufferPtr ); output += '\n'; + xmlBufferEmpty ( bufferPtr ); } xmlBufferFree ( bufferPtr ); break;