| 779 | } |
| 780 | |
| 781 | XMLNode* XMLNode::DeepClone(XMLDocument* target) const |
| 782 | { |
| 783 | XMLNode* clone = this->ShallowClone(target); |
| 784 | if (!clone) return 0; |
| 785 | |
| 786 | for (const XMLNode* child = this->FirstChild(); child; child = child->NextSibling()) { |
| 787 | XMLNode* childClone = child->DeepClone(target); |
| 788 | TIXMLASSERT(childClone); |
| 789 | clone->InsertEndChild(childClone); |
| 790 | } |
| 791 | return clone; |
| 792 | } |
| 793 | |
| 794 | void XMLNode::DeleteChildren() |
| 795 | { |
no test coverage detected