Top "Xquery" questions

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

How to insert xml into a node in another xml using XQuery?

I have two xml variable say @res, @student in a stored proc in SQL server 2005. @res contains <Subject>…

sql sql-server sql-server-2005 xquery
Using XQuery/XPath to get the attribute value of an element's parent node

Given this xml document: <?xml version="1.0" encoding="UTF-8"?> <mydoc> <foo f="fooattr"> <bar …

xpath xquery
Updating Xml attributes with new values in a SQL Server 2008 table

I have a table in SQL Server 2008 that it has some columns. One of these columns is in Xml format …

sql xml sql-server-2008 xquery
How do you convert a string to a node in XQuery?

I would like to convert a string into a node. I have a method that is defined to take a …

xml xquery marklogic
SQL Server query xml attribute for an element value

Sorry if this is somewhere else, I have found a lot of similar examples but I have been unable to …

sql sql-server xml tsql xquery
Only select text directly in node, not in child nodes

How does one retrieve the text in a node without selecting the text in the children? <div id="comment"&…

xpath xquery
Filter SQL queries on the XML column using XPath/XQuery

I'm having a table with one XML column. I'd like to filter out the rows where a specific attribute in …

sql xpath xquery
Xquery get value from attribute

I have some xml and need to extract values using sql <?xml version="1.0" ?> <fields> <field …

sql xml xquery
XQuery Update: insert or replace depending if node exists not possible?

I am trying to build simple XML database (inside BaseX or eXist-db), but I have trouble figuring how to modify …

xquery exist-db basex xquery-update
How to retrieve parent node using XQuery?

I am using XML and XQuerie. I usually use an XPath expression relative to a parent node to retrieve its …

xml xpath parent-child xquery