From 750d0872fcc2209dae1eea67fb791a61b621c00f Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Mon, 19 Jun 2006 02:58:05 +0000 Subject: [PATCH] Fix for setAttribute method. --- xmltooling/encryption/impl/EncryptionImpl.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xmltooling/encryption/impl/EncryptionImpl.cpp b/xmltooling/encryption/impl/EncryptionImpl.cpp index 1f5c54a..39030a8 100644 --- a/xmltooling/encryption/impl/EncryptionImpl.cpp +++ b/xmltooling/encryption/impl/EncryptionImpl.cpp @@ -297,10 +297,14 @@ namespace xmlencryption { void setAttribute(QName& qualifiedName, const XMLCh* value) { if (!qualifiedName.hasNamespaceURI()) { - if (XMLString::equals(qualifiedName.getLocalPart(),ID_ATTRIB_NAME)) + if (XMLString::equals(qualifiedName.getLocalPart(),ID_ATTRIB_NAME)) { setId(value); - else if (XMLString::equals(qualifiedName.getLocalPart(),TARGET_ATTRIB_NAME)) + return; + } + else if (XMLString::equals(qualifiedName.getLocalPart(),TARGET_ATTRIB_NAME)) { setTarget(value); + return; + } } AbstractAttributeExtensibleXMLObject::setAttribute(qualifiedName, value); } -- 2.1.4