Top "Xquery" questions

XQuery is a functional language designed to query and manipulate XML data.

How can I remove duplicate nodes in XQuery?

I have an XML document I generate on the fly, and I need a function to eliminate any duplicate nodes …

duplicates xquery
XQuery multiple xml files?

Is it possible to open 2 documents from an xQuery and do a join on them?

xml xquery
Put each XQuery result on a new line

Is it possible to put each XQuery result on a new line? I thought I remembered there was an attribute …

xml formatting xquery
Is there any way in XQuery to get the current time in milliseconds since some Epoch?

XQuery offers various date/time functions like current-dateTime(), however I can't seem to find one which gives me the time …

xpath xquery
xQuery on XML file with namespace

I'm using eXist-DB to store XML documents. Here's a sample XML file with the namespace info: <?xml version="1.0" encoding="…

xml namespaces xquery
XQuery: Create a new element with a given name?

I have data like: <td>USERID</td> <td>NAME</td> <td&…

xml xquery
Finding node order in XML document in SQL Server

How can I find the order of nodes in an XML document? What I have is a document like this: &…

sql sql-server xml xquery
Using SQL Server 2005's XQuery select all nodes with a specific attribute value, or with that attribute missing

Update: giving a much more thorough example. The first two solutions offered were right along the lines of what I …

sql-server xpath xquery axes
XQuery counters inside a for

Let's say I have the XQuery code below: for $y in doc("file.xml")/A/B for $x in $y/…

xml xquery counter
Select XML element in SQL Server

I have some XML that I need to parse using SQL Server 2008. I think I'm close to getting what I …

sql-server xpath xquery