Stefan, Thanks for reminding me the difference between system and document views. I changed to exportSystemView() and it worked beautifully.
-aj On 7/30/07, Stefan Guggisberg <[EMAIL PROTECTED]> wrote: > > hi aj, > > On 7/29/07, AJ Chen <[EMAIL PROTECTED]> wrote: > > Using session.exportDocumentView(), I export a referenceable node (with > > jcr:uuid) to xml file, and I verify that the xml has the uuid. But, > when > > importing this file, the uuid is not created, regardless which > > ImportUUIDBehavior is used. My goal is to restore the node with the > original > > uuid. Any idea why UUID is not automatically created during importing? > > could you please provide a small test case, incl. a small xml file? > > btw: please note that the document view serialization format is not > meant for roundtripping (export/re-import). whenever possible you > should use system view format for roundtripping. > > cheers > stefan > > > > > Thanks, > > AJ > > -- > > AJ Chen, PhD > > Palo Alto, CA > > http://web2express.org > > > -- AJ Chen, PhD Palo Alto, CA http://web2express.org
