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