1

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

1 Answer 1

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 | [^'&])* "'")
1
  • Thank you. I have found the specs too, but I was not sure that there is not another semantic difference.
    – danatel
    May 22, 2009 at 11:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.