[basex-talk] Java Exception:insertion at beginning of populated table

2013-04-09 Thread Nicholas OR Rita Stevens
Via a python client, I am looping through a set of 600 xml files and
issuing REPLACE commands to store them in my BaseX db.  All was well until
I reached file #364, at which point the program crashed with
Java.lang.RuntimeException: insertion at beginning of populated table.

I am using BaseX 7.7 beta.  I guess I shouldn't be using beta?
___
BaseX-Talk mailing list
BaseX-Talk@mailman.uni-konstanz.de
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk


[basex-talk] Load xml files to BaseX in a loop

2013-02-09 Thread Nicholas OR Rita Stevens
I am new at BaseX so please pardon the newbie question.
I am trying to run an xquery script to load a set of xml files in a
directory into to BaseX 7.5.

If I run replace.xq, shown below, it fails with  Out of Main Memory

declare %updating function local:upd($path,$file) {
db:replace(eams,$path,$file)
};
let $files:=for $file in file:list(d:\xmlfiles) return
d:\xmlfiles\||$file
for $file in $files return local:upd(pd,$file)


But if I run file replace.bxs, it updates with no problem

commands
  replace path=p1d:\xmlfiles\drr1.xml/replace
  replace path=p1d:\xmlfiles\drr2.xml/replace
  replace path=p1d:\xmlfiles\drr3.xml/replace
  replace path=p1d:\xmlfiles\dw1.xml/replace
  replace path=p1d:\xmlfiles\dlp1.xml/replace
/commands

(The same set of files is being processed by both scripts; I checked)

The only idea I have is to use xquery to generate the file replace.bxs and
then run it.
A better way?
Thanks.
___
BaseX-Talk mailing list
BaseX-Talk@mailman.uni-konstanz.de
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk