Javatpoint Logo
Javatpoint Logo

XQuery string-join() Function

The XQuery string-join function is used to concatenate various sequences separated by a given delimiter.

Parameter explanation:

$sequence - It specifies the sequence of zero or more strings.

$delimiter - It specifies the delimiter to separate the items of above sequence.

XQuery string-join Example

Let's take an example to demonstrate the usage of XQuery string-join function. Take an XQuery expression named "courses.xqy", having the following code. It will concat all the given courses from the given XQuery expression.

XQuery Expression:


Create a Java based XQuery executor program to read the courses.xqy, passes it to the XQuery expression processor, and executes the expression. After that the result will be displayed.

Execute XQuery against XML

Put the above both files to a same location. We put them on desktop in a folder name XQuery15. Compile using console. You must have JDK 1.5 or later installed on your computer and classpaths are configured.




java XQueryTester


XQUERY String join function 1

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA