| 2196 | |
| 2197 | |
| 2198 | void XMLDocument::DeepCopy(XMLDocument* target) const |
| 2199 | { |
| 2200 | TIXMLASSERT(target); |
| 2201 | if (target == this) { |
| 2202 | return; // technically success - a no-op. |
| 2203 | } |
| 2204 | |
| 2205 | target->Clear(); |
| 2206 | for (const XMLNode* node = this->FirstChild(); node; node = node->NextSibling()) { |
| 2207 | target->InsertEndChild(node->DeepClone(target)); |
| 2208 | } |
| 2209 | } |
| 2210 | |
| 2211 | XMLElement* XMLDocument::NewElement( const char* name ) |
| 2212 | { |
nothing calls this directly
no test coverage detected