Questions tagged [exist-db]

eXist-db is an open-source database management system built using XML technology. It stores XML data according to the XML data model and features efficient, index-based XQuery processing.

EXist-db is a native XML Database. Resources are stored in a directory-like structure called collections. There are different ways to access the data: XML-RPC, REST, WebDAV, SOAP, XUpdate, XMLDB and so on.

EXist-db is released under the GNU LGPL.

536 questions
4
votes
1 answer

XQuery Update: insert or replace depending if node exists not possible?

I am trying to build simple XML database (inside BaseX or eXist-db), but I have trouble figuring how to modify values in document : content is simple as this for test :

6>

I am trying to build something…
PetrV
  • 1,368
  • 2
  • 15
  • 30
4
votes
3 answers

(XQuery/Conditions) Is it possible to declare variables in an if-statement?

I do not find an example for my problem so here is my question. I get an error that else is an unexpected token in the following example: let $var1 := 'true' if ($var1 = 'true') then let $var2 := 1 let $var3 := $var1 + 1 else () As you see…
Felix
  • 115
  • 2
  • 12
4
votes
2 answers

Scalability of open source XML Databases

We are looking to develop a reporting application that reports on data stored in a large number of XML files. ~3,000,000 files ranging in size from 7KB to 5MB (Each file conforms to the same schema). I’m guessing that there will be about around…
David Harris
  • 705
  • 1
  • 7
  • 16
4
votes
2 answers

XML versus MongoDB

I have a problem... I need to store a daily barrage of about 3,000 mid-sized XML documents (100 to 200 data elements). The data is somewhat unstable in the sense that the schema changes from time to time and the changes are not announced with enough…
Alex R
  • 11,364
  • 15
  • 100
  • 180
4
votes
1 answer

where to declare xquery functions?

Let's take the most simple function I can think of written in xquery: declare function local:identityFunction($v as xs:integer) { return ($v) }; Where do I declare it? I am trying both exist-db and basex, but if I write it in the query…
Kami
  • 1,079
  • 2
  • 13
  • 28
3
votes
4 answers

How to expose large collection of XML documents (~2M) for offline querying (xpath)?

I have just short of 2 million XML documents sitting on 16gb of file system space. They are all valid and share a single DTD. They are all of roughly equal size (all generated by the same lab information system). I'm looking for an easy way for a…
Finn
  • 1,823
  • 2
  • 15
  • 31
3
votes
2 answers

variable in xpath

I'm writing xquery on eXist. Usually I use this way to select item in xml: fn:doc($document_name)/root/a But now I wants to get the xpath from a string variable: let $xpath := request:get-parameter("xpath", "") fn:doc($document_name)/$xpath Of…
owenwater
  • 811
  • 1
  • 6
  • 18
3
votes
0 answers

Installing XSLTForms on exist-db 5.2

Given that the package manager is not offered on the eXist-db 5.2 dashboard (at least not on mine) how does one install XSLTForms on an eXist-db 5.2 installation running on an AWS EC2 instance.
Ihe Onwuka
  • 467
  • 1
  • 3
  • 11
3
votes
2 answers

Why doesn't xmlstarlet select all nodes?

Consider this example from w3schools: Everyday Italian Giada De Laurentiis 2005
simpatico
  • 10,709
  • 20
  • 81
  • 126
3
votes
1 answer

eXistDB no httpclient in version 5.2.0?

I have a question concerning the eXistDB: After an upgrade to eXistDB 5.2.0 I get the following error: HTTP ERROR 500 javax.servlet.ServletException: javax.servlet.ServletException: An error occurred while processing request to…
3
votes
1 answer

How to expose Docker container to the web

I am new to the fabulous world of docker and star twith asking a quite noobish question I think. But first, a little information about myself: I am working with exist-db and plan to move it to docker. So set it up on the server, I thought and…
user9813195
3
votes
2 answers

xquery randomly selecting files without duplicating the selection

In Xquery 3.1 (in eXist 4.7) I have 40 XML files, and I need to select 4 of them at random. However I would like the four files to be different. My files are all in the same collection ($data). I currently count the files, then use a randomising…
jbrehr
  • 775
  • 6
  • 19
3
votes
0 answers

xquery optimizing for multiple parameters on documents in hierarchy

This may be a difficult/overly complex question to answer, however I pose it in hopes of speeding up a query that passes criteria to two sets of documents that are linked in a hierarchy. This is in Xquery 3.1 (under eXist-db 4.7). The database…
jbrehr
  • 775
  • 6
  • 19
3
votes
0 answers

Reducing data size

Recently we completed a task to move 1000s of static PDFs that used to be stored in eXist-db to storage in Amazon S3. All these files are now retrieved through an application that points to Amazon S3 and not the database, the database is used to…
Kevin Brown
  • 8,805
  • 2
  • 20
  • 38
3
votes
1 answer

eXist-db URL mapping for a dynamic page

I have a number of dynamic pages in my eXist-db application which until this moment have been tested through hardcoded inputs. Now I'm at the point where I have to venture into a domain I'm the least comfortable with: URL mapping/rewriting in…
jbrehr
  • 775
  • 6
  • 19
1
2
3
35 36