[MarkLogic Dev General] XQSync Zip has root folder with no name

Michael Blakeley michael.blakeley at marklogic.com
Tue Sep 7 19:10:08 PDT 2010


The short answer is that XQSync's package format isn't designed to be 
useful to other programs. One option is to write your own plugin classes 
to implement XQSync's Writer and/or Reader abstractions. XQSync's 
existing implementations are SessionWriter, PackageWriter, etc. You 
could also write a simple program that reads the packages as zip 
archives, and ignores anything you don't want to output. Or you could 
try to patch XQSync to do what you want.

However, from this and your other email... maybe it would be better to 
explain what you are trying to accomplish? Perhaps there is a better way.

-- Mike

On 2010-09-07 16:42, Curtis Wilde wrote:
> When XQSync pulls data from the server, it uses our URI convention to create the folder structure of the zip.
>
> Our URI convention is to create all URIs with the first character '/', i.e. "/content/shared/some-doc.xml."
>
> The problem is that the root folder of the zip is then named '/' and it is displayed as an empty folder with no name.
>
> Is there any way to strip the leading '/' during download so that the zip doesn't include the empty folder at the root level of the archive?



More information about the General mailing list