<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Original XML:</p><p class=MsoNormal> <Text DEF='DefaultText' string='"Character entity substitutions:"</p><p class=MsoNormal> "empty string \"\" skips a line:"</p><p class=MsoNormal> ""</p><p class=MsoNormal> "apostrophe ' is &apos;"</p><p class=MsoNormal> "ampersand & is &amp;"</p><p class=MsoNormal> "quote mark \" is &quot;"</p><p class=MsoNormal> "backslash \\ is X3D escape character"</p><p class=MsoNormal> "double backslash \\\\ is X3D backslash \\ character"</p><p class=MsoNormal> "Pi Π is &#928; XML character entity"'></p><p class=MsoNormal> <FontStyle DEF='CenteredFontStyle' justify='"MIDDLE" "MIDDLE"'/></p><p class=MsoNormal> </Text></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>My X3DJSAIL JavaScript:</p><p class=MsoNormal> .setGeometry(new TextObject().setDEF("DefaultText").setString(Java.to(["Character entity substitutions:","empty string \"\" skips a line:","","apostrophe ' is '","ampersand & is &","quote mark \" is "","backslash \\ is X3D escape character","double backslash \\\\ is X3D backslash \\ character","Pi Π is Π XML character entity"], Java.type("java.lang.String[]")))<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Output XML:<o:p></o:p></p><p class=MsoNormal> <Text DEF='DefaultText' string='"Character entity substitutions:" "e<o:p></o:p></p><p class=MsoNormal>mpty string \"\" skips a line:" "" "apostrophe ' is &apos;" "ampersand & is &amp;" "quote mark \" is &quot;" "backslash \ is X3D escape character" "double backslash \\ is X3D backslash \ character" "Pi Π is &#928; XML character entity"'><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Does my JavaScript have the correct number of \\? What does the JavaScript SAI say? Should we have a Nashorn SAI?<o:p></o:p></p><p class=MsoNormal><br>I believe I have an up-to-date version of X3DJSAIL. Is there a runtime way of checking?<o:p></o:p></p><p class=MsoNormal><br>JavaScript file included for testing.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Joh<o:p></o:p></p></div></body></html>