Add test case for element names with leading digit.

This commit is contained in:
Martinsh Shaiters 2013-01-26 23:08:10 +02:00
parent c6d02f48d5
commit 95b3e6543b
1 changed files with 8 additions and 1 deletions

View File

@ -1041,6 +1041,13 @@ int main( int /*argc*/, const char ** /*argv*/ )
XMLTest("Non-alpha attribute lead character parses.", doc.Error(), false);
}
{
const char* xml = "<3lement></3lement>";
XMLDocument doc;
doc.Parse( xml );
XMLTest("Element names with lead digit fail to parse.", doc.Error(), true);
}
{
const char* xml = "<element/>WOA THIS ISN'T GOING TO PARSE";
XMLDocument doc;