| 863 | } |
| 864 | |
| 865 | XMLNode* XMLNode::DeepClone(XMLDocument* target) const |
| 866 | { |
| 867 | XMLNode* clone = this->ShallowClone(target); |
| 868 | if (!clone) return 0; |
| 869 | |
| 870 | for (const XMLNode* child = this->FirstChild(); child; child = child->NextSibling()) { |
| 871 | XMLNode* childClone = child->DeepClone(target); |
| 872 | TIXMLASSERT(childClone); |
| 873 | clone->InsertEndChild(childClone); |
| 874 | } |
| 875 | return clone; |
| 876 | } |
| 877 | |
| 878 | void XMLNode::DeleteChildren() |
| 879 | { |
no test coverage detected