[x3d-public] Use of Quoted Strings in XML

Leonard Daly Leonard.Daly at realism.com
Wed May 10 09:33:53 PDT 2017

Using the example 2 from 19776-1

<Text string='"He said, \"Immel did it!\""' />

After the XML parser finishes with this node, the value of the attribute 
'string' is sent to the X3D parser for handling. That string (XML value 
of the attribute 'string') is:

"He said, \"Immel did it!\""

In this it is necessary for using a backslash to identify "special" use 
of a double-quote. The above string is not legal SFString or MFString as 
there is no space between the double-quoted element (for MFString) or 
there are incorrect number of double-quotes characters.

*Leonard Daly*
3D Systems & Cloud Consultant
President, Daly Realism - /Creating the Future/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170510/ccf3cb22/attachment-0001.html>

More information about the x3d-public mailing list