[x3d-public] MFString quoting [was: interesting sample]

Andreas Plesch andreasplesch at gmail.com
Wed Apr 26 07:10:42 PDT 2017


On Apr 25, 2017 11:16 PM, "Michalis Kamburelis"

So

  " ' MFString or SFString ? ' "

is either
- an incorrect MFString (you cannot use ' to delimit parts within MFString)


Yes, you are right, that is incorrect. But that brings up SFStrings.

When not used as part of an MFString, they still have the double quote
requirement while XML allows both single or double quotes.

So, I would suggest to allow single quotes as delimiters in MFStrings as
well although I realize that places an additional burden on the x3d parser.

In the end, to me, allowing balanced pairs of single or double quotes
interchangeably anywhere is the simplest rule. Backslash escaping for
printing is required in any case.

- a correct SFString that happens to start and end with an apostrophe.

Regards,
Michalis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170426/2f290d15/attachment.html>


More information about the x3d-public mailing list