accept a nBytes argument for Parse()

This commit is contained in:
Lee Thomason (grinliz)
2012-09-17 17:58:25 -07:00
parent 2f1f6247e0
commit e2bcb32494
3 changed files with 22 additions and 7 deletions

View File

@@ -947,6 +947,14 @@ int main( int /*argc*/, const char ** /*argv*/ )
XMLTest( "Non-alpha element lead letter parses.", doc.Error(), false );
}
{
const char* xml = "<element/>WOA THIS ISN'T GOING TO PARSE";
XMLDocument doc;
doc.Parse( xml, 10 );
//doc.Print();
XMLTest( "Set length of incoming data", doc.Error(), false );
}
// ----------- Whitespace ------------
{
const char* xml = "<element>"