| 93 | } |
| 94 | |
| 95 | void Document::copyNodes(const NodeList& nodeList) |
| 96 | { |
| 97 | std::lock_guard<std::mutex> lock(_lock); |
| 98 | |
| 99 | if (!isValid()) { |
| 100 | return; // is not Valid, place an assertion here? |
| 101 | } |
| 102 | |
| 103 | // Copy the child nodes one by one |
| 104 | for (auto node: nodeList) { |
| 105 | _xmlDoc.document_element().append_copy(node.getNodePtr()); |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | bool Document::isValid() const |
| 110 | { |
no test coverage detected