Reworked int/bool attribute handling.
[shibboleth/xmltooling.git] / xmltooling / util / XMLConstants.cpp
index a5974b9..847acb6 100644 (file)
@@ -25,7 +25,6 @@
 #include "util/XMLConstants.h"\r
 #include <xercesc/util/XMLUniDefs.hpp>\r
 \r
-using namespace xercesc;\r
 using namespace xmltooling;\r
     \r
 const XMLCh XMLConstants::XML_NS[] = // http://www.w3.org/XML/1998/namespace\r
@@ -90,3 +89,11 @@ const XMLCh XMLConstants::XMLTOOLING_NS[] = // http://www.opensaml.org/xmltoolin
   chLatin_o, chLatin_r, chLatin_g, chForwardSlash,\r
   chLatin_x, chLatin_m, chLatin_l, chLatin_t, chLatin_o, chLatin_o, chLatin_l, chLatin_i, chLatin_n, chLatin_g, chNull\r
 };\r
+\r
+const XMLCh XMLConstants::XML_TRUE[] = { chLatin_t, chLatin_r, chLatin_u, chLatin_e, chNull };\r
+\r
+const XMLCh XMLConstants::XML_FALSE[] = { chLatin_f, chLatin_a, chLatin_l, chLatin_s, chLatin_e, chNull };\r
+\r
+const XMLCh XMLConstants::XML_ONE[] = { chDigit_1, chNull };\r
+\r
+const XMLCh XMLConstants::XML_ZERO[] = { chDigit_0, chNull };\r