Hi Michael,
The solution you suggested works great. I created the database manually using the "SET STRIPNS true" command line option.
Thanks! Ron
On September 4, 2017 at 12:32:10 PM, Michael Seiferle (ms@basex.org) wrote:
Hi Ron,
Adding another opinion the board (I meant to write this already on Saturday) ;-) I don’t think there is much to optimize w.r.t. to the XQuery update solution, as your whole database will be held in memory during the update… YET: if you do not care for the namespaces you could still strip them when creating your database:
``` db:create( 'mydb-no-ns', '<xml xmlns="foo"><_></_></xml>', 'mydoc2.xml', map {"stripns": "yes"} )```
http://docs.basex.org/wiki/Database_Module#db:create https://urldefense.proofpoint.com/v2/url?u=http-3A__docs.basex.org_wiki_Database-5FModule-23db-3Acreate&d=DwMFaQ&c=fi2D4-9xMzmjyjREwHYlAw&r=44jDQvzmnB_-ovfO6Iusj0ItciJrcWMOQQwd2peEBBE&m=BiE8oDqUtywfYBWX9VFoZyr2K-k12tOn2xToYQLemeA&s=LIUQn2XcyYGMAFIOl5PcvmBDiG78lOPd4LaaYK2lpgI&e=
=> • parsing options will only impact string input (URIs, XML strings), because nodes have already been parsed.
Maybe this helps, I am not sure if someone already mentioned it! Best
Michael
Am 02.09.2017 um 00:38 schrieb Ron Katriel rkatriel@mdsol.com:
I can go with the default namespace declaration so no followup is needed, unless you are curious and have the time to investigate.