[x3d-public] Convert X3D JSON to X3D XML
John Carlson
yottzumm at gmail.com
Thu Dec 10 09:50:35 PST 2015
As part of my loader, I can convert JSON to XML. If you want to check what the JSON is likely producing (but not positively, x3dom produces more or fails) in terms of DOM, you can run this program, json2x3d.js. It requires node.js, but you should be able to convert it for use in the browser (or just use my loader). The source code is here: https://raw.githubusercontent.com/coderextreme/X3DJSONLD/master/json2x3d.js <https://raw.githubusercontent.com/coderextreme/X3DJSONLD/master/json2x3d.js>
You can run it like
node json2x3d.js < file.son > file.x3d
Note that this overwrites file.x3d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20151210/c0d0a2eb/attachment.html>
More information about the x3d-public
mailing list