5,408 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
4
votes
2
answers
79
views
Fetching XML document from BaseX database by read-only-user
I'm running a BaseX HTTP-Server where a read-only user is used for database queries.
Now I have the following document getDoc.xml to retrieve content of an XML file in the database:
<query>
<...
leu's user avatar
- 2,123
1
vote
1
answer
67
views
Paginating URIs when using CORB tool in Marklogic
We are using CORB2 tool to extract XPath values from millions of documents and export the values to batch of CSV files.
Details on CORB job:
PROCESS-TASK=com.marklogic.developer.corb.ExportToFileTask
...
0
votes
0
answers
82
views
XQuery performance difference between two XML structures
I am investigating the difference of XQuery performance between two XML structures.
The first one seems more common:
<member>
<info type="basic">
<name>Some ...
2
votes
2
answers
121
views
Keep ancestors/siblings structure in XQuery query() method
Take this for example:
DECLARE @xml XML = N'
<members>
<member>
<name>John</name>
<age>32</age>
</member>
<member>
&...
3
votes
1
answer
82
views
Load module with function having parameters via Marklogic query console
I’m trying to load an XQuery module with a simple function into the Modules database using the Marklogic query console.
xquery version "1.0-ml";
xdmp:document-insert("/my/app/my-module....
3
votes
1
answer
104
views
Import and parse XSLT file using XML
I am trying to import a legacy configuration file into SQL Server table that is in XML that also has an XSLT transform file. I have imported the XML config using .nodes and XPath syntax with a lot of ...
1
vote
0
answers
61
views
XQuery in XMLSPY Unexpected node
I am using version 2019 rel. 3 sp1 (x64) which says the help that XQuery Update Facility works in XMLSPY. But I get an error in the XPath/XQuery panel. "Unexpected token 'node' I am trying to ...
2
votes
1
answer
93
views
What is the retry-count property of a request in MarkLogic?
I can't find much related documentation or settings in MarkLogic regarding the <retry-count> property of a request. I can see this value goes up sometimes and it looks like it comes from within ...
1
vote
1
answer
72
views
How to Create an XML with elements and values dynamically from a string in XQuery
My application reads the text files(headers_columns may vary) and produces the content of the file in string format each record is separated by newline character(\n). I want to generate the XMLs with ...
0
votes
0
answers
24
views
IICS API Service Connection as Text
I have a service connection in IICS that connects to an API with SOAP (was originally a regular REST connection that worked fine). The goal is to take the payload as text and write it to a file. I get ...
1
vote
3
answers
61
views
How to find the element with junk values in huge MarkLogic database?
I am getting this error -
cts:search(fn:collection()/book, cts:element-range-query(xs:QName("ID"), "=", xs:long("1234"), (), 1)) -- Invalid cast: xs:untypedAtomic("...
0
votes
2
answers
79
views
SQL Xquery get node value and CSV of subnode values
I need help getting a node value and a csv value of the subnodes from.
-- File location
declare @x XML = (select * from OPENROWSET(bulk 'C:\SQLBulkLoad\OrphaNet\XML\OrphaTable\en_product1_Small.xml', ...
1
vote
1
answer
64
views
How to handle not always existing node while reading from XML
I'm reading on SQL Server from a column in a table which is of type XML.
The problem is that there is a node called "InstalledBy" which does not always exist.
The definition of the table is ...
0
votes
0
answers
87
views
Xquery integration with apache camel throws Error
Problem statement: Integration Apache Camel with Xquery fails
Steps:
Java 17
Added below camel dependencies to Maven project
<dependency>
<groupId>org.apache.camel</groupId&...
0
votes
1
answer
84
views
Specifying a node in a document to insert something using fontoxpath
So i am new to both fontoxpath and Xquery.
I would like to select a node in a document, then do an insert.
declare %public %updating function xyz:change($bc as document-node(), $ch as element()) {
...