ability to set bool write values
diff --git a/xmltest.cpp b/xmltest.cpp
index b6bb76f..27c9665 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -753,6 +753,18 @@
XMLTest("Attribute: bool", true, element->BoolAttribute("attrib"), true);
}
{
+ element->SetAttribute("attrib", true);
+ const char* result = element->Attribute("attrib");
+ XMLTest("Bool true is 'true'", "true", result);
+
+ XMLUtil::SetBool("1", "0");
+ element->SetAttribute("attrib", true);
+ result = element->Attribute("attrib");
+ XMLTest("Bool true is '1'", "1", result);
+
+ XMLUtil::SetBool(0, 0);
+ }
+ {
element->SetAttribute("attrib", 100.0);
double v = 0;
element->QueryDoubleAttribute("attrib", &v);