문제

I'm using pugixml library to read and write xml files.

How can I do deep copy "Clone" to the xml_document object in pugixml library?

도움이 되었습니까?

해결책

Here's the easiest option:

xml_document copy;
copy.reset(doc);

If you need to be more fine-grained you can use copy.append_copy() on individual nodes.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top