test case for unlinked nodes, commented out

This commit is contained in:
Lee Thomason 2012-10-24 10:17:53 -07:00
parent 856da21652
commit ae9ab0741e
1 changed files with 13 additions and 0 deletions

View File

@ -943,6 +943,19 @@ int main( int /*argc*/, const char ** /*argv*/ )
}
}
#if 0
{
// Passes if assert doesn't fire.
XMLDocument xmlDoc;
xmlDoc.NewDeclaration();
xmlDoc.NewComment("Configuration file");
XMLElement *root = xmlDoc.NewElement("settings");
root->SetAttribute("version", 2);
}
#endif
{
const char* xml = "<element> </element>";
XMLDocument doc( true, COLLAPSE_WHITESPACE );