| 811 | } |
| 812 | |
| 813 | XMLNode* XMLNode::DeepClone(XMLDocument* target) const |
| 814 | { |
| 815 | XMLNode* clone = this->ShallowClone(target); |
| 816 | if (!clone) return 0; |
| 817 | |
| 818 | for (const XMLNode* child = this->FirstChild(); child; child = child->NextSibling()) { |
| 819 | XMLNode* childClone = child->DeepClone(target); |
| 820 | TIXMLASSERT(childClone); |
| 821 | clone->InsertEndChild(childClone); |
| 822 | } |
| 823 | return clone; |
| 824 | } |
| 825 | |
| 826 | void XMLNode::DeleteChildren() |
| 827 | { |
no test coverage detected