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
2
votes
0 answers

eXist-db - XQuery - Lucene - controlling output in KWIC function with callback parameter

(This question is related to an attempt to implement the answer to a question someone else posed a few years ago at Ignored XML elements show up near eXist-db's lucene search results) In eXist-db 4.4 I have the following Lucene index…
jbrehr
  • 775
  • 6
  • 19
2
votes
1 answer

How to wait for another application (eXist-db) to start (using java), before interacting with it?

I am currently working with eXist-db, and what I want to accomplish is executing command line script to start eXist-db (/bin/startup.sh) wait for it to create database so I can get collection from it. //start database try { …
Zerg Overmind
  • 955
  • 2
  • 14
  • 28
2
votes
1 answer

Does eXist-db compression:zip function add XML declaration

I have an XQuery function to convert a group of XML files to HTML and Zip them. It runs a trasform on each file to create elements. Starting with that function: declare function xport:make-sources( $path as xs:string) as item()* { for…
Kevin Brown
  • 8,805
  • 2
  • 20
  • 38
2
votes
1 answer

eXist: is it possible to have XQuery modules stored in XML files?

You can store a module in eXist, such as the following, say under /modules/my.xqm: module namespace my = "http://www.example.com/"; declare function my:answerToTheUltimateQuestion() as xs:integer { 42 } And then import it into a query, such…
avernet
  • 30,895
  • 44
  • 126
  • 163
2
votes
2 answers

Detect a gap / the first ID available in a xml:id sequence with XQuery/Xpath

I have a master xml file with a list like this: Anderson [...]
HBMCS
  • 686
  • 5
  • 25
2
votes
1 answer

New records added via XQuery update insert are not indexed ('seen') by eXist-db until I manually edit the file on oXygen

I'm running eXist-db 3.6.1 on CentOS 7.4.1708 (Core), Java(TM) SE Runtime Environment (build 1.8.0_152-b16). I want to be able to add a new record after the last one in an persons.xml structured like so: [...]…
HBMCS
  • 686
  • 5
  • 25
2
votes
1 answer

exist-db cardinality for parameter

I am new in exist-db and XQuery. In exist-db I have this site map: The catalog "registranten" contains the catalog "data" (with xml-files) and the two files "regBasic.xql" and "regSearch.xql". I am trying to search in the xml-files using the script…
KSR
  • 29
  • 4
2
votes
2 answers

How to register RESTXQ module in eXist-db?

I am trying to use RESTXQ in my exist-db application - lets call it "superapp". I added the restxq trigger to /db/apps/superapp/collection.xconf:
2
votes
1 answer

XQuery fuzzy search in exist-db

We use exist-db base for storing various xml documents, on which we perform searches using xquery. This is example of xml document: Doe
Milan Todorovic
  • 440
  • 4
  • 9
2
votes
2 answers

Case-insensitive search with eXist-db

I am going through a final refinement posted by the client, which needs me to do a case-insensitive query. I will basically walk through how this simple program works. First of all, in my Java class, I did a fairly simple webpage…
Kevin
  • 6,711
  • 16
  • 60
  • 107
2
votes
1 answer

How to solve the issue of Nexus not finding artifacts from added repository for the exist-db database?

When I add dependency for the eXist-db artifacts inside my pom.xml for my project as explained on the official place for eXist artifacts everything works as expected. Here are the fragments added to the pom:
milijan
  • 387
  • 4
  • 12
2
votes
1 answer

Running XQuery in oXygen: Can't access Nodes Within a Document Node

I want to write a query that returns a specific element within an XML document, but when I use a path expression to return an element within a document (i.e. beyond the Document Node), it always returns an empty sequence. Here's the first few lines…
Ethan Powell
  • 100
  • 6
2
votes
1 answer

Update in-memory nodes before storing the data with eXist-db and XQuery

I am creating a web-based database application with eXist-db. My wish is to save the data the user inserts in a formula created with XForms into the database. For that the whole data structure is saved in the variable $content I store in the…
Felix
  • 115
  • 2
  • 12
2
votes
2 answers

How to configure VirtualHost in Apache properly (used for eXist-db app)

On a virtual server I need to run an eXist-db app beside other web sites. In my app there are used cookies for logging in and out. These settings work well for Firefox, everything runs as expected: ServerAdmin my@mail.com …
Honza Hejzl
  • 874
  • 8
  • 23
2
votes
2 answers

Trouble using xmldb:store with collection name with space

I cannot seem to get this right. I have a system where the web user is running a jQuery request to add a new document. The code works perfect if the collection they are storing to have no spaces in the name. This code is: xquery version…
Kevin Brown
  • 8,805
  • 2
  • 20
  • 38