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