Using a range expression : range « XQuery « XML






Using a range expression


File: Query.xquery

for $i in 1 to 3
return <oneEval>{$i}</oneEval>

Output:

<?xml version="1.0" encoding="UTF-8"?>
<oneEval>1</oneEval>
<oneEval>2</oneEval>
<oneEval>3</oneEval>

 








Related examples in the same category