Add test case for element names with leading digit.
This commit is contained in:
@@ -1037,10 +1037,17 @@ int main( int /*argc*/, const char ** /*argv*/ )
|
||||
{
|
||||
const char* xml = "<element _attr1=\"foo\" :attr2=\"bar\"></element>";
|
||||
XMLDocument doc;
|
||||
doc.Parse(xml);
|
||||
doc.Parse( xml );
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user