git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@55
de75baf8-a10c-0410-a50a-
987c0e22f00f
xmltooling::NDC ndc("unmarshall");\r
#endif\r
\r
+ if (getDOM() || hasParent())\r
+ throw UnmarshallingException("Object already contains data, it cannot be unmarshalled at this stage.");\r
+\r
if (!XMLString::equals(element->getNamespaceURI(),getElementQName().getNamespaceURI()) ||\r
!XMLString::equals(element->getLocalName(),getElementQName().getLocalPart())) {\r
throw UnmarshallingException("Unrecognized element supplied to implementation for unmarshalling.");\r