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

eXist-db - include template results in mismatched cardinality, rejection as binary resource

Environment: eXist-db 4.2.1 , XQuery 3.1 I have built a number functions in eXist which output HTML results fine as functions on their own (when I pass the parameters directly). As an example, this little function (document:doc-sidebar-sub4 in…
jbrehr
  • 775
  • 6
  • 19
3
votes
3 answers

Optimizing XQuery interogation with XPath predicate

So, I was optimizing a query I carried over from SQL, and I ran into a bit of a performance issue when compared to how it used to work in sql. Basically, my php script is sending between 2 and 5 sets of two (numeric) values. These have to be…
Den
  • 43
  • 4
3
votes
2 answers

How can I verify that a Lucene query embedded in a larger XQuery does not contain a syntax error before launching the complete XQuery I want to run?

I have an application for which I need to allow the user to perform full text search on documents, and use the Lucene Query Parser syntax if desired. The eXist database is queried from a Django backend that uses eulexistdb to talk to eXist. The…
Louis
  • 146,715
  • 28
  • 274
  • 320
3
votes
2 answers

How to show more than 10 results in eXide (eXist-db)?

I wonder how to make eXide to return more than 10 results. No matter how I query the database, it is not possible to get more. Is there some special rule in $EXIST_HOME or so? I use eXist-db 3.0.RC1.
Honza Hejzl
  • 874
  • 8
  • 23
3
votes
2 answers

How to list collections/resources recursivelly in XQuery

I would like to list all collections from a particular point recursively: declare function local:list-collections($collection as xs:string) { for $child in xmldb:get-child-collections($collection) return …
Honza Hejzl
  • 874
  • 8
  • 23
3
votes
2 answers

using xpath to select an attribute with a dash in the value

I'm using exist-db to parse XML documents. I am writing a xquery script to process the documents. My XML input looks something like this
user5326900
  • 31
  • 1
  • 2
3
votes
2 answers

XQuery with if condition in for loop

I have written xquery to return results in normal way. let $results := //data:data return { for $i in $results return {data($i/DATA:ID)} {data($i/@status)}
user991255
  • 355
  • 1
  • 6
  • 13
3
votes
1 answer

Writing one XQuery script in exist-db with support for multiple output formats

This is a followup question to Getting hold of tag content in XQuery 3.0 (exist-db) Assume that such an xquery script should be able to return the result as XML, JSON or HTML base on a query parameter like…
user2665694
3
votes
3 answers

XPath: finding nodes duplicated n times with a single path expression query

I am practising writing some XPath queries and am stuck at one particular. Below is a sample document I am using: HR John USA
Quintofron
  • 201
  • 2
  • 7
3
votes
2 answers

eXist xml db : java.lang.NoClassDefFoundError: org/apache/ws/commons/serialize/DOMSerializer

I am trying to access an eXist xml db using the embedded method, as described here. That page has a list of jars needed for the classpath, and I have all of them there, but I keep getting this error: Exception in thread "main"…
badperson
  • 1,554
  • 3
  • 19
  • 41
3
votes
1 answer

eXist-db include html template in .xq data

i have an index.html data where I included the template through:
At the index html site I included a…
3
votes
4 answers

How can I write an XQuery that can test what version of XQuery is being used?

I am writing an XQuery that needs to check what version of XQuery is being run (eXist, Saxon, etc.). Is there a standard function that will return the system properties of an XQuery such as version, vendor etc? I know there are some system specific…
Dan McCreary
  • 411
  • 3
  • 13
3
votes
1 answer

eXist DB & XQuery: xml-root with attribute leads to no results

I'm completely new to both eXist DB and XQuery. I've installed eXist and it's working correctly. Now I tried to query some xml files with XQuery in the eXist Query Dialog which is part of the eXist Admin client. The xml file looks like this…
3
votes
1 answer

Finding XML files stored in exist-db on the file system in Linux

I am running eXist-db in linux, but I am not able to find the XML files created in the file system through linux commands like find command. How can I see these XML files?
Madhav
  • 97
  • 1
  • 6
2
votes
1 answer

How to "stitch together" results into a single XML document with eXist-db?

How do I create a "single" result of one notes element as the root node, with multiple child nodes of note elements? Here's the query in eXide: xquery version "3.0"; for $note in collection('/db/tmp')/note return {$note} where…
1 2
3
35 36