First cut at signing support.
[shibboleth/cpp-xmltooling.git] / xmltooling / util / XMLHelper.h
index c1ad4fe..99697e6 100644 (file)
@@ -87,15 +87,15 @@ namespace xmltooling {
         static DOMElement* appendChildElement(DOMElement* parentElement, DOMElement* childElement);\r
         \r
         /**\r
-         * Checks the qualified name of an element.\r
+         * Checks the qualified name of a node.\r
          * \r
-         * @param e     element to check\r
+         * @param n     node to check\r
          * @param ns    namespace to compare with\r
          * @param local local name to compare with\r
-         * @return  true iff the element's qualified name matches the other parameters\r
+         * @return  true iff the node's qualified name matches the other parameters\r
          */\r
-        static bool isElementNamed(const DOMElement* e, const XMLCh* ns, const XMLCh* local) {\r
-            return (e && XMLString::equals(ns,e->getNamespaceURI()) && XMLString::equals(local,e->getLocalName()));\r
+        static bool isNodeNamed(const DOMNode* n, const XMLCh* ns, const XMLCh* local) {\r
+            return (n && XMLString::equals(local,n->getLocalName()) && XMLString::equals(ns,n->getNamespaceURI()));\r
         }\r
 \r
         /**\r