| 801 | } |
| 802 | |
| 803 | XMLNode* XMLNode::DeepClone(XMLDocument* target) const |
| 804 | { |
| 805 | XMLNode* clone = this->ShallowClone(target); |
| 806 | if (!clone) return 0; |
| 807 | |
| 808 | for (const XMLNode* child = this->FirstChild(); child; child = child->NextSibling()) { |
| 809 | XMLNode* childClone = child->DeepClone(target); |
| 810 | TIXMLASSERT(childClone); |
| 811 | clone->InsertEndChild(childClone); |
| 812 | } |
| 813 | return clone; |
| 814 | } |
| 815 | |
| 816 | void XMLNode::DeleteChildren() |
| 817 | { |
no test coverage detected