+void XMLObject::setNil(const XMLCh* value) {
+ if (value) {
+ switch (*value) {
+ case xercesc::chLatin_t:
+ nil(xmlconstants::XML_BOOL_TRUE);
+ break;
+ case xercesc::chLatin_f:
+ nil(xmlconstants::XML_BOOL_FALSE);
+ break;
+ case xercesc::chDigit_1:
+ nil(xmlconstants::XML_BOOL_ONE);
+ break;
+ case xercesc::chDigit_0:
+ nil(xmlconstants::XML_BOOL_ZERO);
+ break;
+ default:
+ nil(xmlconstants::XML_BOOL_NULL);
+ }
+ }
+ else {
+ nil(xmlconstants::XML_BOOL_NULL);
+ }
+}
+