<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>You needed to do replaceAll on the entities, I think. See below.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>$ svn diff<o:p></o:p></p><p class=MsoNormal>Index: CreateX3dSceneAccessInterfaceJava.xslt<o:p></o:p></p><p class=MsoNormal>===================================================================<o:p></o:p></p><p class=MsoNormal>--- CreateX3dSceneAccessInterfaceJava.xslt (revision 24422)<o:p></o:p></p><p class=MsoNormal>+++ CreateX3dSceneAccessInterfaceJava.xslt (working copy)<o:p></o:p></p><p class=MsoNormal>@@ -12771,7 +12771,7 @@<o:p></o:p></p><p class=MsoNormal> <xsl:when test="(@type='MFString')"><o:p></o:p></p><p class=MsoNormal> <xsl:text><o:p></o:p></p><p class=MsoNormal> return (new MFString</xsl:text><xsl:value-of select="$jsaiClassSuffix"/><o:p></o:p></p><p class=MsoNormal>- <xsl:text>(value)).toString().replace("\",\"","\" \""); // removes intermediate commas between quotes</xsl:text><o:p></o:p></p><p class=MsoNormal>+ <xsl:text>(value)).toString().replaceAll("\",\"","\" \""); // removes intermediate commas between quotes</xsl:text><o:p></o:p></p><p class=MsoNormal> </xsl:when><o:p></o:p></p><p class=MsoNormal> <xsl:when test="(@type='MFFloat') or (@type='MFDouble') or (@type='MFTime') or (@type='SFRotation') or (@type='MFRotation') or<o:p></o:p></p><p class=MsoNormal> contains(@type, 'Color') or contains(@type,'Vec') or contains(@type,'Matrix')"><o:p></o:p></p><p class=MsoNormal>@@ -12813,11 +12813,11 @@<o:p></o:p></p><p class=MsoNormal> public static String toStringX3D (String value)<o:p></o:p></p><p class=MsoNormal> {<o:p></o:p></p><p class=MsoNormal> return (new SFStringObject(value)).toString()<o:p></o:p></p><p class=MsoNormal>- .replace("&","&") // escape ampersands<o:p></o:p></p><p class=MsoNormal>- .replace("<","<") // escape less-than < signs<o:p></o:p></p><p class=MsoNormal>- .replace(">",">") // escape greater-than > signs in XML attributes<o:p></o:p></p><p class=MsoNormal>- .replace("'","'") // escape apostrophes since XML attributes in this output are delimited by apostrophes<o:p></o:p></p><p class=MsoNormal>- .replace("\"","\\""); // escape embedded quotation marks<o:p></o:p></p><p class=MsoNormal>+ .replaceAll("&","&") // escape ampersands<o:p></o:p></p><p class=MsoNormal>+ .replaceAll("<","<") // escape less-than < signs<o:p></o:p></p><p class=MsoNormal>+ .replaceAll(">",">") // escape greater-than > signs in XML attributes<o:p></o:p></p><p class=MsoNormal>+ .replaceAll("'","'") // escape apostrophes since XML attributes in this output are delimited by apostrophes<o:p></o:p></p><p class=MsoNormal>+ .replaceAll("\"","\\""); // escape embedded quotation marks<o:p></o:p></p><p class=MsoNormal> }<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal> /**<o:p></o:p></p><p class=MsoNormal>@@ -12854,10 +12854,10 @@<o:p></o:p></p><p class=MsoNormal> result.append("\"");<o:p></o:p></p><p class=MsoNormal> // avoid SFStringObject.toStringX3D(MFString[i]) due to additional contrary handling of \" and &<o:p></o:p></p><p class=MsoNormal> String escapedValue = MFString[i]<o:p></o:p></p><p class=MsoNormal>- // .replace("&","&") // escape ampersands<o:p></o:p></p><p class=MsoNormal>- .replace("<","<") // escape less-than < signs<o:p></o:p></p><p class=MsoNormal>- .replace(">",">") // escape greater-than > signs in XML attributes<o:p></o:p></p><p class=MsoNormal>- .replace("'","'"); // escape apostrophes since XML attributes in this output are delimited by apostrophes<o:p></o:p></p><p class=MsoNormal>+ // .replaceAll("&","&") // escape ampersands<o:p></o:p></p><p class=MsoNormal>+ .replaceAll("<","<") // escape less-than < signs<o:p></o:p></p><p class=MsoNormal>+ .replaceAll(">",">") // escape greater-than > signs in XML attributes<o:p></o:p></p><p class=MsoNormal>+ .replaceAll("'","'"); // escape apostrophes since XML attributes in this output are delimited by apostrophes<o:p></o:p></p><p class=MsoNormal> result.append(escapedValue); // apply escaping to each SFString value<o:p></o:p></p><p class=MsoNormal> if (!MFString[i].startsWith("\""))<o:p></o:p></p><p class=MsoNormal> result.append("\"");<o:p></o:p></p></div></body></html>