| 2149 | |
| 2150 | |
| 2151 | void XMLDocument::DeepCopy(XMLDocument* target) const |
| 2152 | { |
| 2153 | TIXMLASSERT(target); |
| 2154 | if (target == this) { |
| 2155 | return; // technically success - a no-op. |
| 2156 | } |
| 2157 | |
| 2158 | target->Clear(); |
| 2159 | for (const XMLNode* node = this->FirstChild(); node; node = node->NextSibling()) { |
| 2160 | target->InsertEndChild(node->DeepClone(target)); |
| 2161 | } |
| 2162 | } |
| 2163 | |
| 2164 | XMLElement* XMLDocument::NewElement( const char* name ) |
| 2165 | { |
nothing calls this directly
no test coverage detected