diff --git a/GeneralUtils/XMLBuilder.hh b/GeneralUtils/XMLBuilder.hh index 8ce8395..4e18341 100644 --- a/GeneralUtils/XMLBuilder.hh +++ b/GeneralUtils/XMLBuilder.hh @@ -76,6 +76,8 @@ public: shared_ptr makeXML(); /// Add child node virtual void addChild(const shared_ptr& C) { children.push_back(C); } + /// Add externally-memory-managed child node + virtual void addChild(XMLProvider* C) { addChild(shared_ptr(shared_ptr(), C)); } /// Add a tag attribute virtual void addAttr(const string& nm, const string& val) { xattrs[nm] = val; } /// Add numerical attribute