| 2076 | |
| 2077 | |
| 2078 | void XMLDocument::DeepCopy(XMLDocument* target) const |
| 2079 | { |
| 2080 | TIXMLASSERT(target); |
| 2081 | if (target == this) { |
| 2082 | return; // technically success - a no-op. |
| 2083 | } |
| 2084 | |
| 2085 | target->Clear(); |
| 2086 | for (const XMLNode* node = this->FirstChild(); node; node = node->NextSibling()) { |
| 2087 | target->InsertEndChild(node->DeepClone(target)); |
| 2088 | } |
| 2089 | } |
| 2090 | |
| 2091 | XMLElement* XMLDocument::NewElement( const char* name ) |
| 2092 | { |
nothing calls this directly
no test coverage detected