Yes, I think maintaining a complete SPDocument to represent the clipboard contents on the Inkscape side (at least when the clipboard contains SVG) is the right approach. Using a real SPDocument rather than just an XML::Document will make it easier to solve other clipboard-related problems as well.
Yes, I think maintaining a complete SPDocument to represent the clipboard contents on the Inkscape side (at least when the clipboard contains SVG) is the right approach. Using a real SPDocument rather than just an XML::Document will make it easier to solve other clipboard-related problems as well.