#include "tinyxml2.h" #include #include using namespace tinyxml2; int main( int argc, const char* argv ) { #if 0 { static const char* test = ""; XMLDocument doc; doc.Parse( test ); doc.Print( stdout ); } { static const char* test = ""; XMLDocument doc; doc.Parse( test ); doc.Print( stdout ); } #endif { static const char* test[] = { "", "", "", "", "", "", "", 0 }; for( int i=0; test[i]; ++i ) { XMLDocument doc; doc.Parse( test[i] ); doc.Print( stdout ); printf( "----------------------------------------------\n" ); } } return 0; }