ANYQUOTE and QUOTE examples

When a text item is defined with initiator <ANYQUOTE> and terminator <QUOTE>, the following data validates successfully.

"John"

The following data also validates successfully:

'John'

However, the following data fails validation:

"John'

In the failed result, the initial double quote is validated by <ANYQUOTE> and the value John validates successfully as the value of the text item. However, the last single quote fails validation because it is represented in the type tree by the <QUOTE> symbol and the previous <ANYQUOTE> symbol validated a double quote character.

If <QUOTE> is encountered during data validation, and no <ANYQUOTE> symbol was encountered before that, both double quote and single quote characters in data will be accepted as valid.