Hi Eric,


I can't think of any tool or a convenient workaround for your case
at the moment.

How do you change the XML file you want to merge into the
database in the first place?

Everything I have on my mind evolves either around logging the
changes as, i.e., XQuery update statements or trying to take the
whole process to a BaseX Server scenario where everything will
be up to date by nature. But I'm sure you've thought of that 
already ...


Regards,
Lukas




2011/7/2 Eric Jones <ecjones2040@gmail.com>
Hello Mike,

Thank you for the response. After a few hours of contemplation and
reading I still have yet to come
up with a way to merge changes in an XML file to the BaseX database created
with a previous version of that file. Now, I have come up with a bunch
of work arounds  but nothing clean. Do you know
of any tools that I might look into?

Many Thanks,
Eric

On Fri, Jul 1, 2011 at 5:05 AM, Jan Vlčinský (CAD)
<jan.vlcinsky@cad-programs.com> wrote:
> Hi Eric.
> Welcome to astonishing word of XQuery and BaseX.
> If you mean xml files, which are stored inside of BaseX - you can modify the
> file (by commands, XQuery or other API), but you cannot delete it from the
> collection because XQuery itself does not provide such a method. However,
> you are free to set it to empty element, if you need.
> Be sure, that the file inside of BaseX database and on your disk, from where
> you probably imported them, are two different things living separate life.
> There are of course tools to handle some syncing, but I do not do this so I
> cannot help in it much.
> With best regards
> Jan
> Ing. Jan Vlčinský
> CAD programy
> Slunečnicová 338/3, 734 01 Karviná Ráj, Czech Republic
> tel: +420-597 602 024; mob: +420-608 979 040
> skype: janvlcinsky; GoogleTalk: jan.vlcinsky@gmail.com
> http://cz.linkedin.com/in/vlcinsky
>
>
> On 1 July 2011 06:53, Eric Jones <ecjones2040@gmail.com> wrote:
>>
>> Hello all,
>>
>> I am new to BaseX. I want to know how one handles frequently updated
>> xml files. Do you have to monitor the file with a third party tool and
>> upon change drop the file from BaseX and re-add it?
>>
>> Regards,
>> Eric
>> _______________________________________________
>> BaseX-Talk mailing list
>> BaseX-Talk@mailman.uni-konstanz.de
>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
>
>
_______________________________________________
BaseX-Talk mailing list
BaseX-Talk@mailman.uni-konstanz.de
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk