Note visible usage of prefix on xsi:* attributes.
authorcantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Tue, 19 Jan 2010 17:55:25 +0000 (17:55 +0000)
committercantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Tue, 19 Jan 2010 17:55:25 +0000 (17:55 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/branches/REL_1@710 de75baf8-a10c-0410-a50a-987c0e22f00f

xmltooling/io/AbstractXMLObjectUnmarshaller.cpp

index 4d0f8cc..cf58a54 100644 (file)
@@ -146,6 +146,8 @@ void AbstractXMLObjectUnmarshaller::unmarshallAttributes(const DOMElement* domEl
                setNil(attribute->getValue());
                continue;
             }
+            // Note that the prefix is visibly used.
+            addNamespace(Namespace(nsuri, attribute->getPrefix()));
         }
         else if (nsuri && !XMLString::equals(nsuri,XML_NS)) {
             m_log.debug("found namespace-qualified attribute, adding prefix to the list of namespaces on the XMLObject");