add to database basexclient - skip non-well formed xml files

Tuesday, 24 July 2012 · 5 messages · last reply 25 Jul 2012
JK
Jarosław Kowalewski24 Jul 2012 10:12 #
Hi, how can I skip non-well formed xml files in command line import. Basexclient add. With basexgui it's possible. thx Jarek
JK
Jarosław Kowalewski24 Jul 2012 10:16 #
Hi, how can I skip non-well formed xml files in command line import. Basexclient add. With basexgui it's possible. thx Jarek
DK
Dirk Kirsten24 Jul 2012 11:19 #
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
Quoted text · Jarosław Kowalewski · 14 lines
On Tue, Jul 24, 2012 at 10:16 AM, Jarosław Kowalewski < jaroslaw.kowalewski at 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 at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
JK
Jarosław Kowalewski25 Jul 2012 13:01 #
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 at basex.org>:
Quoted text · Dirk Kirsten · 26 lines
> 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 at 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 at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > >
DK
Dirk Kirsten25 Jul 2012 16:15 #
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
Quoted text · Jarosław Kowalewski · 43 lines
On Wed, Jul 25, 2012 at 1:01 PM, Jarosław Kowalewski < jaroslaw.kowalewski at 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 at 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 at 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 at mailman.uni-konstanz.de > >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > > > > >

⚡Generated with XQuery