Revised builder API
[shibboleth/cpp-xmltooling.git] / xmltooling / impl / AnyElement.cpp
index 132e49a..a467741 100644 (file)
@@ -115,7 +115,5 @@ namespace xmltooling {
 XMLObject* AnyElementBuilder::buildObject(
     const XMLCh* namespaceURI, const XMLCh* elementLocalName, const XMLCh* namespacePrefix
     ) const {
-    if (XMLString::stringLen(elementLocalName)==0)
-        throw XMLObjectException("Constructing this object requires an element name.");
     return new AnyElementImpl(namespaceURI,elementLocalName,namespacePrefix);
 }