add to database basexclient - skip non-well formed xml files
Hi, how can I skip non-well formed xml files in command line import. Basexclient add. With basexgui it's possible. thx Jarek
Hi, how can I skip non-well formed xml files in command line import. Basexclient add. With basexgui it's possible. thx Jarek
Hi Jarek, You can set the database option SKIPCORRUPT to true. Please see [1] for more details. Cheers, Dirk [1] http://docs.basex.org/wiki/Options#SKIPCORRUPT On Tue, Jul 24, 2012 at 10:16 AM, Jarosław Kowalewski < jaroslaw.kowalewski@students.waw.pl> wrote:
Hi, how can I skip non-well formed xml files in command line import. Basexclient add. With basexgui it's possible.
thx
Jarek _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Hi, thanks for answer. I've one more question. I've a lot of xml files in folder and from time to time I add new files. When I add to my database files with command add all files are added. I want add only new files and overwrite old files (they can change, but have the same name). I think about xquery mechanism to update, but maybe it's possible make it via command line basexclient. Jarek 2012/7/24 Dirk Kirsten <dk@basex.org>:
Hi Jarek,
You can set the database option SKIPCORRUPT to true. Please see [1] for more details.
Cheers, Dirk
[1] http://docs.basex.org/wiki/Options#SKIPCORRUPT
On Tue, Jul 24, 2012 at 10:16 AM, Jarosław Kowalewski <jaroslaw.kowalewski@students.waw.pl> wrote:
Hi, how can I skip non-well formed xml files in command line import. Basexclient add. With basexgui it's possible.
thx
Jarek _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Hi Jarek, To my knowledge this is not possible via a database command. So the solution using XQuery you proposed is probably the most reasonable. You could use the short gist at [1], which was recently posted on the list by Michael for a function to non-recursively add documents to the db. This might be a good start. cheers, dirk [1] https://gist.github.com/8488e895c5f73ac4de49 On Wed, Jul 25, 2012 at 1:01 PM, Jarosław Kowalewski < jaroslaw.kowalewski@students.waw.pl> wrote:
Hi, thanks for answer. I've one more question. I've a lot of xml files in folder and from time to time I add new files. When I add to my database files with command add all files are added. I want add only new files and overwrite old files (they can change, but have the same name).
I think about xquery mechanism to update, but maybe it's possible make it via command line basexclient.
Jarek
2012/7/24 Dirk Kirsten <dk@basex.org>:
Hi Jarek,
You can set the database option SKIPCORRUPT to true. Please see [1] for more details.
Cheers, Dirk
[1] http://docs.basex.org/wiki/Options#SKIPCORRUPT
On Tue, Jul 24, 2012 at 10:16 AM, Jarosław Kowalewski <jaroslaw.kowalewski@students.waw.pl> wrote:
Hi, how can I skip non-well formed xml files in command line import. Basexclient add. With basexgui it's possible.
thx
Jarek _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
participants (2)
-
Dirk Kirsten -
Jarosław Kowalewski