2011-12-28 22:36:55 +00:00
|
|
|
#include "tinyxml2.h"
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
using namespace tinyxml2;
|
|
|
|
|
|
|
|
int main( int argc, const char* argv )
|
|
|
|
{
|
2011-12-31 22:58:18 +00:00
|
|
|
{
|
|
|
|
static const char* test = "<!--hello world-->";
|
2011-12-28 22:36:55 +00:00
|
|
|
|
2011-12-31 22:58:18 +00:00
|
|
|
XMLDocument doc;
|
|
|
|
doc.Parse( test );
|
|
|
|
doc.Print( stdout );
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
{
|
|
|
|
static const char* test = "<hello></hello>";
|
2011-12-28 22:36:55 +00:00
|
|
|
|
2011-12-31 22:58:18 +00:00
|
|
|
XMLDocument doc;
|
|
|
|
doc.Parse( test );
|
|
|
|
doc.Print( stdout );
|
|
|
|
}
|
|
|
|
*/
|
2011-12-28 22:36:55 +00:00
|
|
|
return 0;
|
|
|
|
}
|