<style>@font-face{font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}</style><font face="Calibri"><p dir="ltr">Hi John</p>
<p dir="ltr">nice. It might be cool to see the json in a second textarea next to the xml. </p>
<p dir="ltr">X3dom.reload() does not need the data uri approach but the inline takes care of the xml preamble and is expected to understand xml even in a regular (non xhtml) html document.<br>
So self closing x3d elements may not work with x3dom.reload(). But the json parser may not produce those anyways.</p>
<p dir="ltr">To me a main benefit of having a x3d scene in a json object would be easy manipulation of the Json object in js. So I am envisioning a scene graph visualization perhaps as an editable tree. Are there json editors/visualizers like this ?</p>
<p dir="ltr">Andreas</p>
<br><br>On November 25, 2015, at 11:05 PM, John Carlson <yottzumm@gmail.com> wrote:<br><br><br></font><html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">The filter works on firefox now.  So you can use firefox if you want cobweb, otherwise, it’s just my X3D JSON X3DOM loader + validation with XML out of my loader.<div class=""><br class=""></div><div class="">John<br class=""><div><blockquote type="cite" class=""><div class="">On Nov 25, 2015, at 8:27 PM, John Carlson <<a href="mailto:yottzumm@gmail.com" class="">yottzumm@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Andreas, I integrated your cobweb loader with my X3D JSON loader and added an XML X3DOM loader that loads XML my X3D JSON loader now produces.  You can enter either JSON or XML, or select from a pick list (apparently my filter doesn’t work on firefox).<div class=""><br class=""></div><div class="">A demo with a few files is here:  <a href="http://coderextreme.net/X3DJSONLD/" class="">http://coderextreme.net/X3DJSONLD/</a> You should be able to paste X3D JSON and X3D XML in the text area and click on the text above the text area.</div><div class=""><br class=""></div><div class="">Source code is here: <a href="https://github.com/coderextreme/X3DJSONLD" class="">https://github.com/coderextreme/X3DJSONLD</a></div><div class=""><br class=""></div><div class="">Note that I’ve been able to load some X3DOM without Inline, using x3dom.reload().  YMMV.</div><div class=""><br class=""></div><div class="">You can run in Chrome, but Cobweb won’t work.</div><div class=""><br class=""></div><div class="">John<br class=""><div class=""><blockquote type="cite" class=""><div class="">On Nov 24, 2015, at 4:00 PM, Andreas Plesch <<a href="mailto:andreasplesch@gmail.com" class="">andreasplesch@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">For quick testing of and tinkering with x3d scenes I added side by side viewing of x3dom and cobweb<br class=""><div class=""><div class="">to my live x3d viewer here:<br class=""></div><div class=""><br class=""><a href="http://andreasplesch.github.io/Library/Viewer/x3dweb.html" class="">http://andreasplesch.github.io/Library/Viewer/x3dweb.html</a><br clear="all" class=""><br class=""></div><div class="">The hardest part was to figure out how to deal with both of them claiming/registering the x3d element on a web page for themselves. x3dom on the main page and cobweb in an iframe finally worked.<br class=""><br class=""><a href="http://andreasplesch.github.io/Library/Viewer/x3dom.html" class="">http://andreasplesch.github.io/Library/Viewer/x3dom.html</a><br class=""><br class=""></div><div class="">has just x3dom and<br class=""><br class=""><a href="http://andreasplesch.github.io/Library/Viewer/index.html" class="">http://andreasplesch.github.io/Library/Viewer/index.html</a><br class=""><br class=""></div><div class="">has just cobweb.<br class=""></div><div class=""><br class=""></div><div class="">Enjoy, <br class=""><br class="">-Andreas<br class=""></div><div class=""><br class="">-- <br class=""><div class="gmail_signature">Andreas Plesch<br class="">39 Barbara Rd.<br class="">Waltham, MA 02453</div>
</div></div></div>
_______________________________________________<br class="">x3d-public mailing list<br class=""><a href="mailto:x3d-public@web3d.org" class="">x3d-public@web3d.org</a><br class=""><a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" class="">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br class=""></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></body></html>