xquery Questions
5
Solved
I know how to find what I need from XML using XPath. The syntax takes a little getting used to, but it is quite powerful. I'm interested in learning XQuery also, but the SQL like syntax seems awkwa...
3
Solved
Sample XML:
<outerTag>
<innerElement>
<Id>1234</Id>
<fName>Kim</fName>
<lName>Scott</lName>
<customData1>Value1</customData1>
<cus...
5
Solved
XML File
<Cities>
<Place>
<City n="New Delhi"></City>
<City n="Chandigarh"></City>
<City n="Mumbai"></City>
</Place>
<Place>
<...
2
Solved
consider a library module ctx
xquery version "3.1";
module namespace ctx="module/ctx";
declare function ctx:resolve (
$ctx as function(xs:string) as xs:QName
) as function(x...
1
I have a source as XML and has a huge number of records. just for the sample I have pasted 1 record below :
<?xml version='1.0' encoding='UTF-8'?><wd:Report_Data xmlns:wd="urn:com.wor...
Shamefaced asked 7/11, 2022 at 11:8
19
Solved
When searching for items in complex JSON arrays and hashes, like:
[
{ "id": 1, "name": "One", "objects": [
{ "id": 1, "name": "Response 1", "objects": [
// etc.
}]
}
]
Is there some k...
Hassan asked 12/12, 2011 at 21:50
4
I have a variable in xQuery of type xs:string with the value of an encoded HTML snippet (the content of a twitter tweet). It looks like this:
Headlines-Today &#8226; AP sources:
&lt;b&a...
5
Solved
I would like to convert a string into a node. I have a method that is defined to take a node, but the value I have is a string (it is hard coded). How do I turn that string into a node?
So, given ...
2
Solved
Both JSONiq and XQuery 3.1 extend XQuery 3.0 with support for JSON.
How do they differ?
4
Solved
I have the following xml in my database:
<email>
<account language="en" ... />
</email>
I am using something like this now: but still have to find the attribute value....
1
restricted to xpath or even Select-Xml how else are the book titles printed?
PS /home/nicholas/powershell>
PS /home/nicholas/powershell> Select-Xml "./bookstore.xml" -XPath "/...
Yearn asked 12/12, 2020 at 11:1
1
How is Select-Xml used as below:
PS /home/nicholas/powershell>
PS /home/nicholas/powershell> Select-Xml
cmdlet Select-Xml at command pipeline position 1
Supply values for the following para...
Smiga asked 12/12, 2020 at 11:18
1
Solved
How can I accomplish something like this:
PS /home/nicholas/powershell>
PS /home/nicholas/powershell> $date=(Get-Date | ConvertTo-Xml)
PS /home/nicholas/powershell>
PS /home/nicholas/po...
Photosensitive asked 12/12, 2020 at 10:35
9
Solved
I have following XML stored in a XML column (called Roles) in a SQL Server database.
<root>
<role>Alpha</role>
<role>Beta</role>
<role>Gamma</role>
<...
Moneyer asked 27/4, 2012 at 4:2
6
Solved
I have a XML that looks like this
<element1>
<element2>
<element3>
<element4>Hello</element4>
<element5>World</element5>
</element3>
<elem...
2
Solved
I have the following xml:
<?xml version="1.0" encoding="UTF-8"?>
<publication>
<scientificPublication>
<id>2347823476</id>
<book>
<chapter>
<autho...
1
Solved
When I look up XQuery examples i sometimes see the operator =>used.
I tried searching for the meaning of it, but could not find anything. Since i am using MarkLogic, it is possible that it is o...
Decontaminate asked 13/5, 2020 at 13:1
1
Solved
3
Solved
I want to be able to generate a complete XML file, given a set of XPath mappings.
The input could specified in two mappings: (1) One which lists the XPath expressions and values; and (2) the other...
5
3
Solved
I'm trying to format decimals in XQuery. The decimals are currency, so the format should be ,###.##.
For example:
5573652.23 should be 5,573,652.23
and
352769 should be 352,769 (or 352,769.00...
Dibbuk asked 30/4, 2011 at 0:12
1
Solved
How can I use & (the ampersand character) in an XQuery concat statement? I'm using eXist DB and this works:
concat("Marvin ", "and", " Peter")
but this doesn't:
concat("Marvin ", "&", "...
1
How can I use XPath query (or even XQuery) to get nampespace prefix declaration of a single element? I want to check if they get defined on more than 1 place.
For example, for the first element, ...
3
Solved
The toComplie string contains all the definitions of the functions like sum, multiply, etc. appended by if ($a > 0) then (iaf:numeric-equal(iaf:numeric-multiply($b, $c), $d)) else (true())
The ...
1
Solved
I'm using XQuery to convert the XML document below to JSON, using Saxon to process the XQuery file.
<books>
<book id="book1">
<author>Book1AuthorSurname, Book1AuthorFirstname&...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.