1

In xquery, is there any difference between single and double quotes?

danatel
  • 4,844
  • 11
  • 48
  • 62

1 Answers1

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