| 2224 | |
| 2225 | |
| 2226 | void XMLDocument::DeepCopy(XMLDocument* target) const |
| 2227 | { |
| 2228 | TIXMLASSERT(target); |
| 2229 | if (target == this) { |
| 2230 | return; // technically success - a no-op. |
| 2231 | } |
| 2232 | |
| 2233 | target->Clear(); |
| 2234 | for (const XMLNode* node = this->FirstChild(); node; node = node->NextSibling()) { |
| 2235 | target->InsertEndChild(node->DeepClone(target)); |
| 2236 | } |
| 2237 | } |
| 2238 | |
| 2239 | XMLElement* XMLDocument::NewElement( const char* name ) |
| 2240 | { |
nothing calls this directly
no test coverage detected