Change name of nested element to look for.
[shibboleth/cpp-opensaml.git] / saml / profile / impl / ConditionsRule.cpp
index 933c61e..416a5b8 100644 (file)
@@ -59,16 +59,16 @@ namespace opensaml {
         return new ConditionsRule(e);
     }
 
-    static const XMLCh Rule[] =     UNICODE_LITERAL_4(R,u,l,e);
+    static const XMLCh Rule[] =     UNICODE_LITERAL_10(P,o,l,i,c,y,R,u,l,e);
     static const XMLCh type[] =     UNICODE_LITERAL_4(t,y,p,e);
 
     const char config[] =
-        "<Rule type=\"Conditions\" xmlns:saml2=\"urn:oasis:names:tc:SAML:2.0:assertion\" xmlns:saml=\"urn:oasis:names:tc:SAML:1.0:assertion\">"\r
-            "<Rule type=\"Audience\"/>"\r
-            "<Rule type=\"Ignore\">saml:DoNotCacheCondition</Rule>"\r
-            "<Rule type=\"Ignore\">saml2:OneTimeUse</Rule>"\r
-            "<Rule type=\"Ignore\">saml2:ProxyRestriction</Rule>"\r
-        "</Rule>";\r
+        "<PolicyRule type=\"Conditions\" xmlns:saml2=\"urn:oasis:names:tc:SAML:2.0:assertion\" xmlns:saml=\"urn:oasis:names:tc:SAML:1.0:assertion\">"\r
+            "<PolicyRule type=\"Audience\"/>"\r
+            "<PolicyRule type=\"Ignore\">saml:DoNotCacheCondition</PolicyRule>"\r
+            "<PolicyRule type=\"Ignore\">saml2:OneTimeUse</PolicyRule>"\r
+            "<PolicyRule type=\"Ignore\">saml2:ProxyRestriction</PolicyRule>"\r
+        "</PolicyRule>";\r
 };
 
 ConditionsRule::ConditionsRule(const DOMElement* e) : m_doc(NULL)