Note visible usage of prefix on xsi:* attributes.
authorScott Cantor <cantor.2@osu.edu>
Tue, 19 Jan 2010 17:55:25 +0000 (17:55 +0000)
committerScott Cantor <cantor.2@osu.edu>
Tue, 19 Jan 2010 17:55:25 +0000 (17:55 +0000)
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");