[x3d-public] Convert X3D JSON to X3D XML

Don Brutzman brutzman at nps.edu
Sun Dec 13 14:17:18 PST 2015


It is certainly exciting to have "ring-side seats" to observe all of this co-development going on!

Very impressive.  Thanks for your efforts.

On 12/11/2015 11:19 PM, clement at igonet.fr wrote:
> Very nice! Very useful for my unit tests.
>
> Indeed, my node.js project produced X3D files, then I finally decided to produce X3D json natively. But I missed a way to check if json generated was acceptable.
>
> Now, thanks to you, I can convert (revert) json result to X3D to check if it match with X3D I got before.
>
> Great!
>
> Le 10 décembre 2015 18:50:35 UTC+01:00, John Carlson <yottzumm at gmail.com> a écrit :
>
>     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
>
>     You can run it like
>
>     node json2x3d.js < file.son > file.x3d
>
>     Note that this overwrites file.x3d

all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman



More information about the x3d-public mailing list