eXide | A web-based XQuery IDE for eXist-db
kandi X-RAY | eXide Summary
kandi X-RAY | eXide Summary
eXide is a web-based XQuery IDE built around the ace editor. It is tightly integrated with the eXist-db native XML database.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of eXide
eXide Key Features
eXide Examples and Code Snippets
Community Discussions
Trending Discussions on eXide
QUESTION
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
:
ANSWER
Answered 2020-Nov-22 at 12:15XML must have exactly one root node.
Also without knowing the structure in the data I would assume you want to get all notes
regardless how deep they are nested. To achieve that use collection($col)//note
QUESTION
ANSWER
Answered 2020-Nov-22 at 09:05You have two …
tags in this XML file. The XML specification states that you may only have one root element.
To fix this, remove the:
QUESTION
I started working with eXide for my job, and i have to say that the documentation is very poor... I couldn't find a solution to this problem:
err:XPTY0004 checking function parameter 1 in call file:move($position, $destination): XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: file:move($original as item(), $destination as item()) xs:boolean. Expected cardinality: exactly one, got 0. [at line 8, column 24, source: xquery version "3.1"; import module namespace file = "http://exist-db.org/xquery/file"; let $log-in := xmldb:login('/db', 'admin', '') for $doc in collection('/db/lime-fao/fao-resolution@lime.com') let $position := document-uri($doc)[contains(., 'main.xml')] let $destination := replace($position, 'main.xml', 'main') return file:move($position,$destination)]
What am i doing wrong? Here's the query:
...ANSWER
Answered 2020-Nov-18 at 17:53You can try the following.
XQuery
QUESTION
I want to make a table in which I'm going to make an unordered list with the names of the hotels and the number of stars like this:
Hoteles
· Macuya (4)
· Fuentevino (2)
· Tresarazos (3)
Using this code:
...ANSWER
Answered 2020-Apr-26 at 15:12You could also use this approach (incorporating @Martin Honnen`s great star rendering)
QUESTION
I'm trying to silently install eXist-DB on Windows 10, but the process appears to fail when trying to set the password for the database. Some googling resulted in finding other people with this same issue when attempting to install on a Linux platform, but it was noted the issue was fixed. However, it seems to still be an issue on the Windows installer, or I'm not doing something properly. Anyone have any ideas?
I'm using the following command from an administrative command prompt:
...ANSWER
Answered 2020-Apr-14 at 15:59This message seems to imply that there is already an existing database with an admin password set. Did you point the installer at an existing data dir that contains a database?
QUESTION
I have below two requirement using Python:
- Convert csv to multi-document json.
- Ignore "" or null objects.
Have mentioned both code and csv. Currently I am getting only json array objects but I need to create in multi-document json.
my csv
...ANSWER
Answered 2019-Dec-11 at 08:31using glob
QUESTION
In eXist 4.7 I implemented the persistentlogin
in my controller.xql
and I have noticed that it does not "persist" very long in my eXist web app ("thema"), whereas the eXide web app in the same eXist instance, using the same login function, persists authenticated status as expected.
Specifically, if I am logged in to both in the evening, the next morning eXide is still logged in (ie. authenticated = true), and my app is not.
I implemented it as follows, with duration set at 30 days ("P30D"):
...ANSWER
Answered 2019-Sep-10 at 14:34According to the source code for the login module, there are two ways to designate the duration for the login session:
- Via the
$maxAge
parameter of thelogin:set-user
function - Via a
duration
request parameter (which overrides the$maxAge
parameter when present)
In your code, you are setting a duration
request attribute, not a request parameter; for more on the difference, see this answer. This explains why the login module is completely ignoring your attempts to declare a duration.
To fix your problem, you could either (1) change to the first method:
QUESTION
Following on from this question about navigating collections using pos
:
In eXist 4.7 I have a collection in myapp/data/
which contains thousands of TEI XML documents. I use the following solution from Martin Honnen to get the document before and after a certain document
ANSWER
Answered 2019-Aug-19 at 08:49It seems at the XQuery level you can change let $examples := $data/tei:TEI[@type="example"]
to
QUESTION
I'm trying to categorize latin/non-latin data through Python. I want the output to be 'columnname: Latin' if it's Latin, 'columnname: Non-Latin' if it's non-latin. Here's the data set I'm using:
...ANSWER
Answered 2019-Jul-09 at 14:38It depends what need - if check if any value has non latin values or all values have strings with numpy.where
:
QUESTION
Running the following xquery directly in eXide (Eval) it works fine, adding the XML files in MyFSdirectory into the MyCollectionPath:
...ANSWER
Answered 2019-Jan-10 at 17:15This sounds like a permissions issue. In other words, when you run the script in eXide, you're likely running as a user (e.g., "admin") with write permissions on the target collection, but in your application the script is likely running as a guest user without the required permission to write to the target collection.
To troubleshoot, add an expression calling xmldb:login()
to your app:upload_file()
function, supplying the credentials for the user you use in eXide.
If elevating privileges this way works, then the next step would be to consider setting appropriate permissions on the target collection or setting applying setuid or setgid on the module that writes to the database.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install eXide
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page