| 2256 | |
| 2257 | |
| 2258 | void XMLDocument::DeepCopy(XMLDocument* target) const |
| 2259 | { |
| 2260 | TIXMLASSERT(target); |
| 2261 | if (target == this) { |
| 2262 | return; // technically success - a no-op. |
| 2263 | } |
| 2264 | |
| 2265 | target->Clear(); |
| 2266 | for (const XMLNode* node = this->FirstChild(); node; node = node->NextSibling()) { |
| 2267 | target->InsertEndChild(node->DeepClone(target)); |
| 2268 | } |
| 2269 | } |
| 2270 | |
| 2271 | XMLElement* XMLDocument::NewElement( const char* name ) |
| 2272 | { |
nothing calls this directly
no test coverage detected