1
2
3
4
5
6 #include <sngxml/dom/DocumentFragment.hpp>
7
8 namespace sngxml { namespace dom {
9
10 DocumentFragment::DocumentFragment() : ParentNode(NodeType::documentFragmentNode, U"document_fragment")
11 {
12 }
13
14 std::std::unique_ptr<Node>DocumentFragment::CloneNode(booldeep)
15 {
16 std::unique_ptr<Node> clonedDocumentFragment(new DocumentFragment());
17 if (deep)
18 {
19 ParentNode* parentNode = static_cast<ParentNode*>(clonedDocumentFragment.get());
20 CloneChildrenTo(parentNode);
21 }
22 return clonedDocumentFragment;
23 }
24
25 } }