Set xsi:type during object construction.
[shibboleth/cpp-xmltooling.git] / xmltooling / io / AbstractXMLObjectUnmarshaller.cpp
index 12e0327..465b432 100644 (file)
@@ -117,9 +117,7 @@ void AbstractXMLObjectUnmarshaller::unmarshallAttributes(const DOMElement* domEl
             }\r
         }\r
         else if (XMLString::equals(nsuri,XMLConstants::XSI_NS) && XMLString::equals(attribute->getLocalName(),type)) {\r
-            XT_log.debug("found xsi:type declaration, setting the schema type of the XMLObject");\r
-            auto_ptr<QName> xsitype(XMLHelper::getAttributeValueAsQName(attribute));\r
-            setSchemaType(xsitype.get());\r
+            XT_log.debug("skipping xsi:type declaration");\r
             continue;\r
         }\r
         else if (nsuri && !XMLString::equals(nsuri,XMLConstants::XML_NS)) {\r