cancel
Showing results for 
Search instead for 
Did you mean: 

Copy a document in a specific space

soeursourire
Champ in-the-making
Champ in-the-making
Hi!

I would like to copy a file in the same folder where was the file programmatically. I was thinking to use the Clipboard but I do not see really how I can paste the file in the specific space:

addClipboardNode(id, ClipboardStatus.COPY);

I have a file stored in admin/procedures/record.xml and I would like to have a copy in admin/procesures/record1.xml

How can I paste the copy then in the same folder?

Thanks in advance for your help
11 REPLIES 11

soeursourire
Champ in-the-making
Champ in-the-making
Just a small question: which XML parser are you using in Alfresco? Dom4j?
Would Xerces be supported by Alfreso?
Thanks

soeursourire
Champ in-the-making
Champ in-the-making
Oups… You already answer to this question:

Any of the standard Java XML parsers can be used. I think Xerces is used under the covers. A pull-parser is also present in our WAR. I would suggest JDom or Dom4J as the mechanism to process XML if you want to walk the DOM in memory.

Sorry..