Is this the best way to duplicate a DOMDocument? DOMNode* n = original->cloneNode(true); DOMDocument *copy = static_cast<DOMDocument *>(n);
Is there a way of doing this that avoids using a static_cast?
Is this the best way to duplicate a DOMDocument? DOMNode* n = original->cloneNode(true); DOMDocument *copy = static_cast<DOMDocument *>(n);
Is there a way of doing this that avoids using a static_cast?