[basex-talk] XML Merging while reading from the DB

2018-08-17 Thread DK Singh
Hi All, I have ingested the XML into DB having node "include" and within "include" some file referenced, when i read the file from the DB it merges the each XML , is there any way to disabled include functionality while reading the file. Input == http://docbook.org/ns/do

Re: [basex-talk] Database Updates

2018-08-17 Thread Christian Grün
How are your resulting database contents supposed to look like after your update? Dave Kopecek schrieb am Fr., 17. Aug. 2018, 17:27: > Hi All, > > Given a database created from catalog.xml below. What's the best way to > update & add records received daily as in file daily-update.xml ? > > Comi

[basex-talk] Database Updates

2018-08-17 Thread Dave Kopecek
Hi All, Given a database created from catalog.xml below. What's the best way to update & add records received daily as in file daily-update.xml ? Coming from relational DBs & new to this. I ultimately need to script/automate this. Hoping there's some magic command I'm missing & looking for best w

Re: [basex-talk] archive:create

2018-08-17 Thread Ветошкин Владимир
Christian, thank you very much!It works! :) 17.08.2018, 17:58, "Christian Grün" :Try serialize($doc) instead of $doc. Ветошкин Владимир schrieb am Fr., 17. Aug. 2018, 16:55:Hi! I want to write xml-data to zip-archive. I try something like this:                 let $db := db:op

Re: [basex-talk] archive:create

2018-08-17 Thread Christian Grün
Try serialize($doc) instead of $doc. Ветошкин Владимир schrieb am Fr., 17. Aug. 2018, 16:55: > Hi! > > I want to write xml-data to zip-archive. > > I try something like this: > > let $db := db:open('test') > let $doc := > $db/doc[id='cb818e0d-7d49-4f78-8424-49e06

[basex-talk] archive:create

2018-08-17 Thread Ветошкин Владимир
Hi! I want to write xml-data to zip-archive. I try something like this:                 let $db := db:open('test')                let $doc := $db/doc[id='cb818e0d-7d49-4f78-8424-49e063d3efdf']                let $zip := archive:create(file.txt, $doc)                return file:write-binary('test.zi

[basex-talk] XML Files merging while reading from the DB

2018-08-17 Thread DK Singh
Hi All, I have ingested the XML into DB having node "include" and within "include" some file referenced, when i read the file from the DB it merges the each XML , is there any way to disabled include functionality while reading the file. Input == http://docbook.org/ns/do

Re: [basex-talk] release read lock

2018-08-17 Thread Christian Grün
Hi Владимир (cc to the list), > let $docs := db:open('sirukov')/docs/doc > for $msg in db:open('sirukov')/msgs/msg[EnvelopeID = $docs/envelopeid] > let $db := try {db:open($msg/dbname)} catch * {} > for $xml in $db[*:Envelope/*:Header/*:RoutingInf/*:EnvelopeID = > $msg/EnvelopeID] > (: some actio

Re: [basex-talk] release read lock

2018-08-17 Thread Christian Grün
Hi Владимир, > Have you experience with basex in high-load projects? There are definitely many high-load instances of BaseX in productive use (one I’m currently working on has >100.000 read and write requests per day. > That is the similar query I sent you in previous letters (where first query

Re: [basex-talk] release read lock

2018-08-17 Thread Ветошкин Владимир
Hi, Christian! That is the similar query I sent you in previous letters (where first query is to database e.g. 'sirukov' and then some queries to several bases). Have you experience with basex in high-load projects?I fear that I'm wrong in choosing basex as a database for storaging xml-data, becaus