In xquery, is there any difference between single and double quotes?
Asked
Active
Viewed 995 times
1 Answers
1
No. For string literals, they work exactly like in JavaScript.
Spec: XQuery 1.0, Section A.2.1: Terminal Symbols - StringLiteral:
StringLiteral ::= ('"' (PredefinedEntityRef | CharRef | EscapeQuot | [^"&])* '"') | ("'" (PredefinedEntityRef | CharRef | EscapeApos | [^'&])* "'")

Tomalak
- 332,285
- 67
- 532
- 628
-
Thank you. I have found the specs too, but I was not sure that there is not another semantic difference. – danatel May 22 '09 at 11:05