diff options
Diffstat (limited to 'src/KM_xml.cpp')
| -rw-r--r-- | src/KM_xml.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/KM_xml.cpp b/src/KM_xml.cpp index 9c41512..2286d9b 100644 --- a/src/KM_xml.cpp +++ b/src/KM_xml.cpp @@ -1,5 +1,5 @@ /* -Copyright (c) 2005-2006, John Hurst +Copyright (c) 2005-2008, John Hurst All rights reserved. Redistribution and use in source and binary forms, with or without @@ -86,6 +86,14 @@ Kumu::XMLElement::SetAttr(const char* name, const char* value) // Kumu::XMLElement* +Kumu::XMLElement::AddChild(Kumu::XMLElement* element) +{ + m_ChildList.push_back(element); // takes posession! + return element; +} + +// +Kumu::XMLElement* Kumu::XMLElement::AddChild(const char* name) { XMLElement* tmpE = new XMLElement(name); |
