From: Scott Cantor Date: Tue, 19 Jan 2010 17:55:25 +0000 (+0000) Subject: Note visible usage of prefix on xsi:* attributes. X-Git-Tag: 1.4RC1~107 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=commitdiff_plain;h=1678e3945e3456d04fc6e7b9c3125df0bd152ae8 Note visible usage of prefix on xsi:* attributes. --- diff --git a/xmltooling/io/AbstractXMLObjectUnmarshaller.cpp b/xmltooling/io/AbstractXMLObjectUnmarshaller.cpp index 4d0f8cc..cf58a54 100644 --- a/xmltooling/io/AbstractXMLObjectUnmarshaller.cpp +++ b/xmltooling/io/AbstractXMLObjectUnmarshaller.cpp @@ -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");