iterate on parsing.

This commit is contained in:
Lee Thomason
2012-01-23 11:42:06 -08:00
parent d923c670fc
commit ec975cede8
3 changed files with 19 additions and 10 deletions

View File

@@ -28,15 +28,20 @@ int main( int argc, const char* argv )
}
#endif
{
static const char* test[] = { //"<element />",
// "<element></element>",
static const char* test[] = { "<!--single element-->",
"<element />",
"<element></element>",
"<!--single sub-element-->",
"<element><subelement/></element>",
"<element><subelement></subelement></element>",
"<!--comment beside elements--><element><subelement></subelement></element>",
0
};
for( int i=0; test[i]; ++i ) {
XMLDocument doc;
doc.Parse( test[i] );
doc.Print( stdout );
printf( "----------------------------------------------\n" );
}
}
return 0;