X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=blobdiff_plain;f=xmltooling%2Futil%2FXMLHelper.cpp;h=73e6681dd510bd3d2326acdb5b07bfef9bd12512;hp=9ebde32806f2b2de5eae3be00075cadb64042d61;hb=bd026f07e729e66127b3efd48aee443fba815af3;hpb=6bf08ad666ef628116800af401e2b058bc67554f diff --git a/xmltooling/util/XMLHelper.cpp b/xmltooling/util/XMLHelper.cpp index 9ebde32..73e6681 100644 --- a/xmltooling/util/XMLHelper.cpp +++ b/xmltooling/util/XMLHelper.cpp @@ -167,6 +167,11 @@ DOMElement* XMLHelper::appendChildElement(DOMElement* parentElement, DOMElement* return childElement; } +bool XMLHelper::isNodeNamed(const xercesc::DOMNode* n, const XMLCh* ns, const XMLCh* local) +{ + return (n && XMLString::equals(local,n->getLocalName()) && XMLString::equals(ns,n->getNamespaceURI())); +} + const XMLCh* XMLHelper::getTextContent(const DOMElement* e) { DOMNode* child=e->getFirstChild();