Added detach() method to strip off a root parent element, fixed bug in namespace...
[shibboleth/xmltooling.git] / xmltooling / AbstractChildlessElement.cpp
index 6063134..1a37855 100644 (file)
@@ -29,3 +29,8 @@ using namespace std;
 // shared "empty" list of children for childless objects\r
 \r
 list<XMLObject*> AbstractChildlessElement::m_no_children;\r
+\r
+void AbstractChildlessElement::removeChild(XMLObject* child)\r
+{\r
+    throw XMLObjectException("Cannot remove child from a childless object.");\r
+}\r