<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">John,<br>
<br>
Note that in HTML (V5.2 standard -
<a class="moz-txt-link-freetext" href="https://www.w3.org/TR/html52/syntax.html#cdata-sections">https://www.w3.org/TR/html52/syntax.html#cdata-sections</a>), CDATA
can only be used in foreign content (MATHML and SVG are explicitly
mentioned). It use to be common practice to put CDATA around
JavaScript contents; but all browsers that support WebGL also
support JavaScript, so that would not be necessary.<br>
<br>
Leonard Daly<br>
<br>
<br>
<br>
</div>
<blockquote type="cite"
cite="mid:5ac0d307.87a4370a.b5259.3187@mx.google.com">
<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;}
@font-face
{font-family:"Segoe UI Emoji";
panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:"}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
h3
{mso-style-priority:9;
mso-style-link:"Heading 3 Char";
margin-top:2.0pt;
margin-right:0in;
margin-bottom:0in;
margin-left:0in;
margin-bottom:.0001pt;
page-break-after:avoid;
font-size:12.0pt;
font-family:"Calibri Light",sans-serif;
color:#1F3763;
font-weight:normal;}
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;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
span.Heading3Char
{mso-style-name:"Heading 3 Char";
mso-style-priority:9;
mso-style-link:"Heading 3";
font-family:"Calibri Light",sans-serif;
color:#1F3763;}
span.highlight-span
{mso-style-name:highlight-span;}
.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;}
/* List Definitions */
@list l0
{mso-list-id:633877142;
mso-list-template-ids:-1;}
@list l0:level1
{mso-level-tab-stop:.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level2
{mso-level-tab-stop:1.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level3
{mso-level-tab-stop:1.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level4
{mso-level-tab-stop:2.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level5
{mso-level-tab-stop:2.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level6
{mso-level-tab-stop:3.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level7
{mso-level-tab-stop:3.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level8
{mso-level-tab-stop:4.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level9
{mso-level-tab-stop:4.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1
{mso-list-id:1582645357;
mso-list-template-ids:-1;}
@list l1:level1
{mso-level-tab-stop:.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level2
{mso-level-tab-stop:1.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level3
{mso-level-tab-stop:1.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level4
{mso-level-tab-stop:2.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level5
{mso-level-tab-stop:2.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level6
{mso-level-tab-stop:3.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level7
{mso-level-tab-stop:3.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level8
{mso-level-tab-stop:4.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level9
{mso-level-tab-stop:4.5in;
mso-level-number-position:left;
text-indent:-.25in;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style>
<div class="WordSection1">
<p class="MsoNormal">So it looks like:</p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<pre><span style="color:black">xmlDoc.createCDATASection(</span><span style="color:#A31515">"<sample>This is an element</sample>"</span><span style="color:black">);<o:p></o:p></span></pre>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">is the standard way of creating a CDATA
section, and this works in X3DJSONLD server side. Can we use
this in Edge with the other hack to get CDATA sections in
place? Or will using the HTML document variable throw us off?
I guess we should be using an XML document and definitely not
the HTML document, eh?<br>
<br>
</p>
<p class="MsoNormal">Looks like the way to get an XML document
in the browser is:</p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div
style="mso-element:para-border-div;border-top:1.0pt;border-left:3.0pt;border-bottom:1.0pt;border-right:3.0pt;border-color:#3F87A6;border-style:solid;padding:11.0pt
11.0pt 11.0pt 11.0pt;background:#E4F0F5">
<pre style="background:#E4F0F5;border:none;padding:0in"><em><span style="font-size:13.5pt;font-family:Consolas;color:#333333;border:none windowtext 1.0pt;padding:0in">var documentType</span></em><span style="font-size:13.5pt;font-family:Consolas;color:#333333"> = document.implementation.createDocumentType(<em><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0in">qualifiedNameStr</span></em>, <em><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0in">publicId</span></em>, <em><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0in">systemId</span></em>)<o:p></o:p></span></pre>
</div>
</div>
<div
style="mso-element:para-border-div;border-top:1.0pt;border-left:3.0pt;border-bottom:1.0pt;border-right:3.0pt;border-color:#3F87A6;border-style:solid;padding:11.0pt
11.0pt 11.0pt 11.0pt;background:#E4F0F5">
<pre style="background:#E4F0F5;border:none;padding:0in"><span style="font-size:13.5pt;font-family:Consolas;color:#333333">var xmlDoc = document.implementation.createDocument(<em><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0in">namespaceURI</span></em>, <em><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0in">qualifiedNameStr</span></em>, <em><span style="font-family:Consolas;border:none windowtext 1.0pt;padding:0in">documentType</span></em>);<o:p></o:p></span></pre>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Can anyone confirm? I’d like to get this
into X3DJSONLD GUI asap. It’s already in my server side code
with xmldom.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Probably I’ll start working on this now.
I’m not sure what putting an xml document in HTML will do
however, when I put it in a textarea, so…help!<br>
Thanks,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">John</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sent from <a
href="https://go.microsoft.com/fwlink/?LinkId=550986"
moz-do-not-send="true">Mail</a> for Windows 10</p>
<p class="MsoNormal"><o:p> </o:p></p>
<div
style="mso-element:para-border-div;border:none;border-top:solid
#E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="border:none;padding:0in"><b>From:
</b><a href="mailto:yottzumm@gmail.com"
moz-do-not-send="true">John Carlson</a><br>
<b>Sent: </b>Sunday, April 1, 2018 8:12 AM<br>
<b>To: </b><a href="mailto:holger.seelig@yahoo.de"
moz-do-not-send="true">holger.seelig@yahoo.de</a>; <a
href="mailto:x3d-public@web3d.org" moz-do-not-send="true">x3d-public@web3d.org</a>;
<a href="mailto:andreasplesch@gmail.com"
moz-do-not-send="true">Andreas Plesch</a>; <a
href="mailto:gpugroup@gmail.com" moz-do-not-send="true">GPU
Group</a>; <a href="mailto:brutzman@nps.edu"
moz-do-not-send="true">Don Brutzman</a><br>
<b>Subject: </b>RE: possible issue with X_ITE with
Edge;CDATAsectionsnotshowingupinEdge XML textareas. Problem
with other browsers.</p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Loading JSON definitely prevents animation
from happening in the X_ITE XML text section in Edge. That’s
the CDATA section I think. Load bubs.json for example.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">John<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sent from <a
href="https://go.microsoft.com/fwlink/?LinkId=550986"
moz-do-not-send="true">Mail</a> for Windows 10<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From: </b><a
href="mailto:yottzumm@gmail.com" moz-do-not-send="true">John
Carlson</a><br>
<b>Sent: </b>Sunday, April 1, 2018 8:09 AM<br>
<b>To: </b><a href="mailto:holger.seelig@yahoo.de"
moz-do-not-send="true">holger.seelig@yahoo.de</a>; <a
href="mailto:x3d-public@web3d.org" moz-do-not-send="true">x3d-public@web3d.org</a>;
<a href="mailto:andreasplesch@gmail.com"
moz-do-not-send="true">Andreas Plesch</a>; <a
href="mailto:gpugroup@gmail.com" moz-do-not-send="true">GPU
Group</a>; <a href="mailto:brutzman@nps.edu"
moz-do-not-send="true">Don Brutzman</a><br>
<b>Subject: </b>RE: possible issue with X_ITE with Edge;
CDATAsectionsnotshowingupinEdge XML textareas. Problem with
other browsers.<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Both serialized XML versions load work from
URLs after adding CDATA sections to XML. Otherwise, the
script isn’t run in Edge. Andreas, do you have some magic for
adding CDATA sections in Edge? Thanks!<o:p></o:p></p>
<p class="MsoNormal"><br>
I also replaced the < when hand editing the CDATA
sections. So that may be an issue as well<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Attached.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Getting closer.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">John<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sent from <a
href="https://go.microsoft.com/fwlink/?LinkId=550986"
moz-do-not-send="true">Mail</a> for Windows 10<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From: </b><a
href="mailto:yottzumm@gmail.com" moz-do-not-send="true">John
Carlson</a><br>
<b>Sent: </b>Sunday, April 1, 2018 7:44 AM<br>
<b>To: </b><a href="mailto:holger.seelig@yahoo.de"
moz-do-not-send="true">holger.seelig@yahoo.de</a>; <a
href="mailto:x3d-public@web3d.org" moz-do-not-send="true">x3d-public@web3d.org</a>;
<a href="mailto:andreasplesch@gmail.com"
moz-do-not-send="true">Andreas Plesch</a>; <a
href="mailto:gpugroup@gmail.com" moz-do-not-send="true">GPU
Group</a>; <a href="mailto:brutzman@nps.edu"
moz-do-not-send="true">Don Brutzman</a><br>
<b>Subject: </b>RE: possible issue with X_ITE with Edge;
CDATA sectionsnotshowingupinEdge XML textareas. Problem with
other browsers.<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:0in;text-indent:-.25in;mso-list:l1
level1 lfo1;background:#FFF0F0;word-break:break-all"><!--[if !supportLists]--><span
style="font-size:9.0pt;font-family:"color:#FF0505"><span
style="mso-list:Ignore">1.<span style="font:7.0pt
"Times New Roman""> </span></span></span><!--[endif]--><span
style="font-size:9.0pt;font-family:"color:#FF0505">XML5656:
Illegal qualified name character.<o:p></o:p></span></p>
<div>
<div>
<div>
<div>
<div>
<div style="border:none;border-bottom:solid #EDEDED
1.0pt;padding:0in 0in 3.0pt 0in">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:0in;text-indent:-.25in;mso-list:l1
level1
lfo1;background:#FFF0F0;word-break:break-all"><!--[if !supportLists]--><span
style="font-size:9.0pt;font-family:"color:#FF0505"><span
style="mso-list:Ignore">2.<span
style="font:7.0pt "Times New
Roman""> </span></span></span><!--[endif]--><span
style="font-size:9.0pt;font-family:"color:#FF0505">[object
Error]: </span><span
style="font-size:9.0pt;font-family:"color:#2B91AF">{</span><span
style="font-size:9.0pt;font-family:"color:#1E1E1E">description:
</span><span
style="font-size:9.0pt;font-family:"color:#A31515">"Unable
to get property 'setup' of undefined or null
reference"</span><span
style="font-size:9.0pt;font-family:"color:#1E1E1E">,
message: </span><span
style="font-size:9.0pt;font-family:"color:#A31515">"Unable
to get property 'setup' of undefined or null
reference"</span><span
style="font-size:9.0pt;font-family:"color:#1E1E1E">,
number: </span><span
style="font-size:9.0pt;font-family:"color:#A31515">-2146823281</span><span
style="font-size:9.0pt;font-family:"color:#1E1E1E">, stack: </span><span
style="font-size:9.0pt;font-family:"color:#A31515">"TypeError:
Unable to get property 'setup' of undefined or
null reference at createX3DFromString
(<a class="moz-txt-link-freetext" href="https://cdn.rawgit.com/create3000/x_ite/4.1.5/dist/x_ite.min.js:43:22971">https://cdn.rawgit.com/create3000/x_ite/4.1.5/dist/x_ite.min.js:43:22971</a>)
at Anonymous function
(<a class="moz-txt-link-freetext" href="https://coderextreme.net/X3DJSONLD/src/main/node/loaderJQuery.js:203:3">https://coderextreme.net/X3DJSONLD/src/main/node/loaderJQuery.js:203:3</a>)
at h
(<a class="moz-txt-link-freetext" href="https://cdn.rawgit.com/create3000/x_ite/4.1.5/dist/x_ite.min.js:4:24940">https://cdn.rawgit.com/create3000/x_ite/4.1.5/dist/x_ite.min.js:4:24940</a>)
at c.add
(<a class="moz-txt-link-freetext" href="https://cdn.rawgit.com/create3000/x_ite/4.1.5/dist/x_ite.min.js:4:25057">https://cdn.rawgit.com/create3000/x_ite/4.1.5/dist/x_ite.min.js:4:25057</a>)
at T
(<a class="moz-txt-link-freetext" href="https://cdn.rawgit.com/create3000/x_ite/4.1.5/dist/x_ite.min.js:43:29332">https://cdn.rawgit.com/create3000/x_ite/4.1.5/dist/x_ite.min.js:43:29332</a>)
at t
(<a class="moz-txt-link-freetext" href="https://cdn.rawgit.com/create3000/x_ite/4.1.5/dist/x_ite.min.js:43:30467">https://cdn.rawgit.com/create3000/x_ite/4.1.5/dist/x_ite.min.js:43:30467</a>)
at load_X_ITE_XML
(<a class="moz-txt-link-freetext" href="https://coderextreme.net/X3DJSONLD/src/main/node/loaderJQuery.js:201:2">https://coderextreme.net/X3DJSONLD/src/main/node/loaderJQuery.js:201:2</a>)
at loadXmlBrowsers
(<a class="moz-txt-link-freetext" href="https://coderextreme.net/X3DJSONLD/src/main/node/loaderJQuery.js:80:4">https://coderextreme.net/X3DJSONLD/src/main/node/loaderJQuery.js:80:4</a>)
at Anonymous function
(<a class="moz-txt-link-freetext" href="https://coderextreme.net/X3DJSONLD/src/main/node/loaderJQuery.js:289:8">https://coderextreme.net/X3DJSONLD/src/main/node/loaderJQuery.js:289:8</a>)
at Anonymous function
(<a class="moz-txt-link-freetext" href="https://coderextreme.net/X3DJSONLD/src/main/node/loaderJQuery.js:437:3">https://coderextreme.net/X3DJSONLD/src/main/node/loaderJQuery.js:437:3</a>)"</span><span
style="font-size:9.0pt;font-family:"color:#2B91AF">}</span><span
style="font-size:9.0pt;font-family:"color:#FF0505"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal">Still having an issue or two with
createX3DFromString in Edge, but either the initial XML load
works, or the XML -> My JSON -> XML conversion works,
but the JSON -> XML conversion does not work. The JSON
load (of Don’s JSON) does not produces a good XML string for
createX3DFromString or something. I will verify, but there’s
no issue loading JSON with importJS that I can tell—it’s the
best at loading <span style="font-family:"Segoe UI
Emoji",sans-serif">😊</span>. Or URLs work too. Don’s
XML is attached as don.txt and my XML is attached as
john.txt. So I think the don.txt is failing. I will test
them as URLs.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">However the file doesn’t load in the other
browsers besides web browser, and I’m wondering why. I think
it’s because coordIndex cannot be initialized from a script,
or the MFVec3f constructor <span
style="font-family:"Segoe UI Emoji",sans-serif">☹</span>
Can some tell me how to add an SFVec3f to an MFVec3f in the
general case? Should I add the SFVec3f to MFVec3f after
creating it by doing a push()?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Other vendors, let me know. Attached is
the file. I now believe the JSON file produces the above
error<o:p></o:p></p>
<p class="MsoNormal"><br>
I’m thinking the standard may not be flexible enough for
non-declarative graphics, which is unfortunate—but I didn’t
look at MF field methods in general.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Doug, also see if you can get this file
working in FreeWRL.<o:p></o:p></p>
<p class="MsoNormal"><br>
I do recall an older version of this file working with other
browsers, so I know it’s possible!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">John<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sent from <a
href="https://go.microsoft.com/fwlink/?LinkId=550986"
moz-do-not-send="true">Mail</a> for Windows 10<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From: </b><a
href="mailto:yottzumm@gmail.com" moz-do-not-send="true">John
Carlson</a><br>
<b>Sent: </b>Sunday, April 1, 2018 6:05 AM<br>
<b>To: </b><a href="mailto:holger.seelig@yahoo.de"
moz-do-not-send="true">holger.seelig@yahoo.de</a>; <a
href="mailto:x3d-public@web3d.org" moz-do-not-send="true">x3d-public@web3d.org</a>;
<a href="mailto:andreasplesch@gmail.com"
moz-do-not-send="true">Andreas Plesch</a><br>
<b>Subject: </b>RE: possible issue with X_ITE with Edge;
CDATA sections notshowingupinEdge XML textareas.<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The color has been fixed by changing the
type from SFVec3f to SFColor (whew).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><a
href="https://coderextreme.net/X3DJSONLD/src/main/html/x_ite.xhtml"
moz-do-not-send="true">https://coderextreme.net/X3DJSONLD/src/main/html/x_ite.xhtml</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">John<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sent from <a
href="https://go.microsoft.com/fwlink/?LinkId=550986"
moz-do-not-send="true">Mail</a> for Windows 10<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From: </b><a
href="mailto:yottzumm@gmail.com" moz-do-not-send="true">John
Carlson</a><br>
<b>Sent: </b>Sunday, April 1, 2018 5:51 AM<br>
<b>To: </b><a href="mailto:holger.seelig@yahoo.de"
moz-do-not-send="true">holger.seelig@yahoo.de</a>; <a
href="mailto:x3d-public@web3d.org" moz-do-not-send="true">x3d-public@web3d.org</a>;
<a href="mailto:andreasplesch@gmail.com"
moz-do-not-send="true">Andreas Plesch</a><br>
<b>Subject: </b>RE: possible issue with X_ITE with Edge;
CDATA sections not showingupinEdge XML textareas.<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The only issue now is the color of the
ProtoInstances (passed as parameters to the Protos) in the
XML. I will put into a URL and test.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">John<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sent from <a
href="https://go.microsoft.com/fwlink/?LinkId=550986"
moz-do-not-send="true">Mail</a> for Windows 10<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From: </b><a
href="mailto:yottzumm@gmail.com" moz-do-not-send="true">John
Carlson</a><br>
<b>Sent: </b>Sunday, April 1, 2018 5:04 AM<br>
<b>To: </b><a href="mailto:holger.seelig@yahoo.de"
moz-do-not-send="true">holger.seelig@yahoo.de</a>; <a
href="mailto:x3d-public@web3d.org" moz-do-not-send="true">x3d-public@web3d.org</a>;
<a href="mailto:andreasplesch@gmail.com"
moz-do-not-send="true">Andreas Plesch</a><br>
<b>Subject: </b>RE: possible issue with X_ITE with Edge;
CDATA sections not showingup inEdge XML textareas.<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">More info. When I load flowers2.x3d XML
without converted JSON -> XML (comment out call to
updateFromJson()). <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div style="border:none;border-bottom:solid #EDEDED
1.0pt;padding:0in 0in 3.0pt 0in">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:0in;text-indent:-.25in;mso-list:l0
level1 lfo2;background:#FFFBE6;word-break:break-all"><!--[if !supportLists]--><span
style="font-size:9.0pt;font-family:"color:#5C3B00"><span
style="mso-list:Ignore">1.<span style="font:7.0pt
"Times New Roman""> </span></span></span><!--[endif]--><span
style="font-size:9.0pt;font-family:"color:#5C3B00">XML Parser
Error: Couldn't create IS reference: Field
'diffuseColor' and 'diffuseColor' in PROTO have
different types.<o:p></o:p></span></p>
</div>
</div>
<div style="border:none;border-bottom:solid #EDEDED
1.0pt;padding:0in 0in 3.0pt 0in">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#FFFBE6;word-break:break-all"><span
style="font-size:9.0pt;font-family:"color:#5C3B00"><a
href="https://cdn.rawgit.com/create3000/x_ite/4.1.5/dist/x_ite.min.js"
moz-do-not-send="true"><span style="color:#0066CC">x_ite.min.js
(17,13252)</span></a><o:p></o:p></span></p>
</div>
<div>
<div style="border:none;border-bottom:solid #EDEDED
1.0pt;padding:0in 0in 3.0pt 0in">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:0in;text-indent:-.25in;mso-list:l0
level1 lfo2;word-break:break-all"><!--[if !supportLists]--><span
style="font-size:9.0pt;font-family:"color:#5C3B00"><span
style="mso-list:Ignore">2.<span style="font:7.0pt
"Times New Roman""> </span></span></span><!--[endif]--><span
style="font-size:9.0pt;font-family:"color:#5C3B00">XML Parser
Error: Couldn't create IS reference: Field
'specularColor' and 'specularColor' in PROTO have
different types.<o:p></o:p></span></p>
</div>
</div>
<div style="border:none;border-bottom:solid #EDEDED
1.0pt;padding:0in 0in 3.0pt 0in">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;word-break:break-all"><span
style="font-size:9.0pt;font-family:"color:#5C3B00"><a
href="https://cdn.rawgit.com/create3000/x_ite/4.1.5/dist/x_ite.min.js"
moz-do-not-send="true"><span style="color:#0066CC">x_ite.min.js
(17,13252)</span></a><o:p></o:p></span></p>
</div>
<div>
<div style="border:none;border-bottom:solid #EDEDED
1.0pt;padding:0in 0in 3.0pt 0in">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:0in;text-indent:-.25in;mso-list:l0
level1 lfo2;background:#FFFBE6;word-break:break-all"><!--[if !supportLists]--><span
style="font-size:9.0pt;font-family:"color:#5C3B00"><span
style="mso-list:Ignore">3.<span style="font:7.0pt
"Times New Roman""> </span></span></span><!--[endif]--><span
style="font-size:9.0pt;font-family:"color:#5C3B00">XML Parser
Error: Unknown named or imported node 'Clock'.<o:p></o:p></span></p>
</div>
</div>
<div style="border:none;border-bottom:solid #EDEDED
1.0pt;padding:0in 0in 3.0pt 0in">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;background:#FFFBE6;word-break:break-all"><span
style="font-size:9.0pt;font-family:"color:#5C3B00"><a
href="https://cdn.rawgit.com/create3000/x_ite/4.1.5/dist/x_ite.min.js"
moz-do-not-send="true"><span style="color:#0066CC">x_ite.min.js
(17,15070)</span></a><o:p></o:p></span></p>
</div>
<div>
<div style="border:none;border-bottom:solid #EDEDED
1.0pt;padding:0in 0in 3.0pt 0in">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:0in;text-indent:-.25in;mso-list:l0
level1 lfo2;background:#FFFBE6;word-break:break-all"><!--[if !supportLists]--><span
style="font-size:9.0pt;font-family:"color:#5C3B00"><span
style="mso-list:Ignore">4.<span style="font:7.0pt
"Times New Roman""> </span></span></span><!--[endif]--><span
style="font-size:9.0pt;font-family:"color:#5C3B00">XML Parser
Error: Unknown named or imported node 'OrbitPath'.<o:p></o:p></span></p>
</div>
</div>
</div>
<p class="MsoNormal">The display comes up in X_ITE XML with no
color and no animation.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">So likely there’s a problem with my XML and
CDATA. But I think the JSON may be okay (the conversion from
JSON -> XML), at least for JSON parsing and X3DOM.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">John<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Sent from <a
href="https://go.microsoft.com/fwlink/?LinkId=550986"
moz-do-not-send="true">Mail</a> for Windows 10<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From: </b><a
href="mailto:yottzumm@gmail.com" moz-do-not-send="true">John
Carlson</a><br>
<b>Sent: </b>Saturday, March 31, 2018 4:02 PM<br>
<b>To: </b><a href="mailto:holger.seelig@yahoo.de"
moz-do-not-send="true">holger.seelig@yahoo.de</a>; <a
href="mailto:x3d-public@web3d.org" moz-do-not-send="true">x3d-public@web3d.org</a>;
<a href="mailto:andreasplesch@gmail.com"
moz-do-not-send="true">Andreas Plesch</a><br>
<b>Subject: </b>possible issue with X_ITE with Edge; CDATA
sections not showing up inEdge XML textareas.<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Holger, Andreas, files converted JSON ->
XML in Chrome and Firefox have CDATA sections, but Edge
doesn’t have CDATA sections when looking at serialized XML
text, from my several time look. We need a better hack below
in X3DJSONLD for Edge, I think, but investigate below:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">function CDATACreateFunction(document,
element, str) {<o:p></o:p></p>
<p class="MsoNormal"> var y = str.replace(/\\"/g, "\\\"")<o:p></o:p></p>
<p class="MsoNormal"> .replace(/</g,
"<")<o:p></o:p></p>
<p class="MsoNormal"> .replace(/>/g,
">")<o:p></o:p></p>
<p class="MsoNormal"> .replace(/&/g,
"&");<o:p></o:p></p>
<p class="MsoNormal"> do {<o:p></o:p></p>
<p class="MsoNormal"> str = y;<o:p></o:p></p>
<p class="MsoNormal"> y =
str.replace(/'([^'\r\n]*)\n([^']*)'/g, "'$1\\n$2'");<o:p></o:p></p>
<p class="MsoNormal"> if (str !== y) {<o:p></o:p></p>
<p class="MsoNormal"> //
console.error("CDATA Replacing",str,"with",y);<o:p></o:p></p>
<p class="MsoNormal"> }<o:p></o:p></p>
<p class="MsoNormal"> } while (y != str);<o:p></o:p></p>
<p class="MsoNormal"> <span style="color:#C00000"> var
domParser = new DOMParser();</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#C00000"> var
cdataStr = '<script> <![CDATA[ ' + y + ' ]]>
</script>'; // has to be wrapped into an element<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#C00000"> var
scriptDoc = domParser .parseFromString (cdataStr,
'application/xml');<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#C00000"> var
cdata = scriptDoc .children[0] .childNodes[1]; // space
after script is childNode[0]<o:p></o:p></span></p>
<p class="MsoNormal"> element .appendChild(cdata);<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">Holger, there may be an issue with:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">
browser.replaceWorld(browser.createX3DFromString(content));
// where content is XML<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">in the Edge browser for X_ITE. No problems
with Chrome or Firefox in that regard.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This is with 4.1.5.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">You can see it online here: <a
href="https://coderextreme.net/X3DJSONLD/src/main/html/index.html"
moz-do-not-send="true">https://coderextreme.net/X3DJSONLD/src/main/html/index.html</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Select ../data/flowers2.json from the upper
left selection (this is converted to XML (not DOM, although I
could) and loaded into X_ITE). If you paste flowers2.x3d into
the XML section, you might see that the flowers aren’t
colored, but black and white for some reason (PROTOs?). Note
that you may have to reload because failed replaceWorlds will
freeze the canvas, I think.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Also ../data/force.json has no animation
with Edge and the XML version. I feel this may be the CDATA
above, but it also may be due to an initializeOnly field on an
Extrusion (spine).<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">These errors may be due to initializeOnly
fields (modifying Extrusion spline, IFS coordIndexes) which
aren’t tested with browser.importJS??? (not sure—may want to
check). Note that X3DJSAIL does not validate flowers2.json
(converted to flowers2.java), so likely there’s an issue with
that file. I’m also getting <span
style="font-size:9.0pt;font-family:Consolas;color:#FF0505">XML5656:
Illegal qualified name character. </span><span
style="font-size:9.0pt;font-family:Consolas">And <span
style="color:#FF0505">[object Error]: </span></span><span
style="font-size:9.0pt;font-family:"color:#2B91AF">{</span><span
style="font-size:9.0pt;font-family:"color:#1E1E1E">description:
</span><span
style="font-size:9.0pt;font-family:"color:#A31515">"Unable
to get property 'setup' of undefined or null reference"</span><span
style="font-size:9.0pt;font-family:"color:#1E1E1E">,
message: </span><span
style="font-size:9.0pt;font-family:"color:#A31515">"Unable
to get property 'setup' of undefined or null reference"</span><span
style="font-size:9.0pt;font-family:"color:#1E1E1E">,
number: </span><span
style="font-size:9.0pt;font-family:"color:#A31515">-2146823281</span><span
style="font-size:9.0pt;font-family:"color:#1E1E1E">,
stack: </span><span
style="font-size:9.0pt;font-family:"color:#A31515">"TypeError:
Unable to get property 'setup' of undefined or null
reference at createX3DFromString
(<a class="moz-txt-link-freetext" href="https://cdn.rawgit.com/create3000/x_ite/4.1.5/dist/x_ite.min.js:43:22971">https://cdn.rawgit.com/create3000/x_ite/4.1.5/dist/x_ite.min.js:43:22971</a>)
at Anonymous function
(<a class="moz-txt-link-freetext" href="http://localhost:3000/node/loaderJQuery.js:204:3">http://localhost:3000/node/loaderJQuery.js:204:3</a>) at h
(<a class="moz-txt-link-freetext" href="https://cdn.rawgit.com/create3000/x_ite/4.1.5/dist/x_ite.min.js:4:24940">https://cdn.rawgit.com/create3000/x_ite/4.1.5/dist/x_ite.min.js:4:24940</a>)
at c.add
(<a class="moz-txt-link-freetext" href="https://cdn.rawgit.com/create3000/x_ite/4.1.5/dist/x_ite.min.js:4:25057">https://cdn.rawgit.com/create3000/x_ite/4.1.5/dist/x_ite.min.js:4:25057</a>)
at T
(<a class="moz-txt-link-freetext" href="https://cdn.rawgit.com/create3000/x_ite/4.1.5/dist/x_ite.min.js:43:29332">https://cdn.rawgit.com/create3000/x_ite/4.1.5/dist/x_ite.min.js:43:29332</a>)
at t
(<a class="moz-txt-link-freetext" href="https://cdn.rawgit.com/create3000/x_ite/4.1.5/dist/x_ite.min.js:43:30467">https://cdn.rawgit.com/create3000/x_ite/4.1.5/dist/x_ite.min.js:43:30467</a>)
at load_X_ITE_XML
(<a class="moz-txt-link-freetext" href="http://localhost:3000/node/loaderJQuery.js:202:2">http://localhost:3000/node/loaderJQuery.js:202:2</a>) at
loadXmlBrowsers
(<a class="moz-txt-link-freetext" href="http://localhost:3000/node/loaderJQuery.js:80:4">http://localhost:3000/node/loaderJQuery.js:80:4</a>) at
Anonymous function
(<a class="moz-txt-link-freetext" href="http://localhost:3000/node/loaderJQuery.js:290:8">http://localhost:3000/node/loaderJQuery.js:290:8</a>) at
Anonymous function
(<a class="moz-txt-link-freetext" href="http://localhost:3000/node/loaderJQuery.js:438:3">http://localhost:3000/node/loaderJQuery.js:438:3</a>)"</span><span
style="font-size:9.0pt;font-family:"color:#2B91AF">}</span><span
style="font-size:9.0pt;font-family:Consolas"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:Consolas">Again, all this
is working fine in Chrome and Firefox as far as I know.
Well X3DOM isn’t currently working in Chrome. Sigh!<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:9.0pt;font-family:Consolas"><o:p> </o:p></span></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">John<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"><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>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
x3d-public mailing list
<a class="moz-txt-link-abbreviated" href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>
<a class="moz-txt-link-freetext" href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a>
</pre>
</blockquote>
<p><br>
</p>
<div class="moz-signature">-- <br>
<font class="tahoma,arial,helvetica san serif" color="#333366">
<font size="+1"><b>Leonard Daly</b></font><br>
3D Systems & Cloud Consultant<br>
LA ACM SIGGRAPH Past Chair<br>
President, Daly Realism - <i>Creating the Future</i>
</font></div>
</body>
</html>