I have tried following steps: C:\Srikumar\Software\BaseX\BaseX941\basex>java -Dorg.basex.DEFAULTDB=true -cp basex.jar org.basex.BaseX -c"get DEFAULTDB" DEFAULTDB: true C:\Srikumar\Software\BaseX\BaseX941\basex>cd bin C:\Srikumar\Software\BaseX\BaseX941\basex\bin>basex BaseX 9.4.1 [Standalone] Try 'help' to get more information.
XQUERY for $article in doc('6301904f80000114/0601904f80007547.xml') return $article Stopped at ., 1/20: [FODC0002] Resource 'C:/Srikumar/Software/BaseX/BaseX941/basex/bin/6301904f80000114/0601904f80007547.xml' does not exist.
XQUERY db:system()//defaultdb <defaultdb>false</defaultdb> Query executed in 37.99 ms. exit See you.
Thanks, Srikumar ________________________________ From: Christian Grün <christian.gruen@gmail.com> Sent: Friday, August 21, 2020 4:24 PM To: Srikumar Choudhury <schoudhu@opentext.com> Cc: basex-talk@mailman.uni-konstanz.de <basex-talk@mailman.uni-konstanz.de>; Nikhil Sethi <nsethi@opentext.com> Subject: Re: [EXTERNAL] - Re: Error: Stopped at ., 1/20: [FODC0002] Resource 'C:/Srikumar/Software/BaseX/BaseX941/basex/bin/6301904f80000114/0601904f80007547.xml' does not exist.
I have tested below code but it is not working.
System.setProperty("org.basex.DEFAULTDB", "true"); XQDataSource xqs = new BaseXXQDataSource();
What do you get if you run the following XQuery expression? db:system()//defaultdb