I have a BaseX database with 3 documents in it. The third one is generated by operating on the first two. I need to do some additional operations to generate a 4th document and was hoping I could generate a copy of my third document and then modify it.
I know how to use the copy and modify commands, but I don't want to return xml, write to a file and then add that file. I want to duplicate the document without having to save any new files.
Any thoughts?