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...
Charmion asked 21/11, 2008 at 16:0

3

Solved

Sample XML: <outerTag> <innerElement> <Id>1234</Id> <fName>Kim</fName> <lName>Scott</lName> <customData1>Value1</customData1> <cus...
Florenceflorencia asked 23/4, 2023 at 17:31

5

Solved

XML File <Cities> <Place> <City n="New Delhi"></City> <City n="Chandigarh"></City> <City n="Mumbai"></City> </Place> <Place> &lt...
Ayer asked 18/6, 2012 at 8:5

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...
Gollin asked 11/11, 2022 at 22:45

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 • AP sources: <b&a...
Aleenaleetha asked 9/4, 2010 at 22:54

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 ...
Indeterminable asked 23/9, 2008 at 14:12

2

Solved

Both JSONiq and XQuery 3.1 extend XQuery 3.0 with support for JSON. How do they differ?
Brittani asked 5/7, 2017 at 7:19

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....
Fantasm asked 10/1, 2012 at 18:41

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> &lt...
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...
Instigation asked 24/2, 2014 at 19:22

2

Solved

I have the following xml: <?xml version="1.0" encoding="UTF-8"?> <publication> <scientificPublication> <id>2347823476</id> <book> <chapter> <autho...
Bimbo asked 8/6, 2020 at 14:21

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

I am trying to run this code but I get the following error. package practicaXML; import javax.xml.xquery.*; import org.w3c.dom.Node; import net.xqj.basex.BaseXXQDataSource; public class App { pu...
Shriver asked 25/4, 2020 at 17:35

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...
Vickievicksburg asked 9/7, 2012 at 13:25

5

I heard that an HTML document is not a XML document from https://stackoverflow.com/a/39560454. XPath and XQuery work on XML documents. Can they work on HTML documents, and why? Although I don't k...
Donets asked 23/4, 2019 at 22:18

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 ", "&", "...
Moisten asked 15/2, 2019 at 16:19

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, ...
Amalekite asked 23/10, 2018 at 0:50

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 ...
Basham asked 28/3, 2018 at 12:52

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&...
Flagitious asked 26/2, 2018 at 11:25

© 2022 - 2024 — McMap. All rights reserved.