<html><head></head><body><a href="https://www.npmjs.com/package/xmltojson">https://www.npmjs.com/package/xmltojson</a> should let me compare exclusively json files... ;-)<br><br><div class="gmail_quote">Le 20 mars 2016 18:51:09 UTC+01:00, "clement@igonet.fr" <clement@igonet.fr> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
At the very moment (for Open Earth View - osm2x3d module), I only compare some (x3d) json files with nodejs mocha (unit test) framework. xml files comparison should not be a problem, either by comparing raw files, or by comparing json files generated from xml files.<br />
<br />
I could suggest/provide you a nodejs framework quickly...<br />
<br />
Clement.<br />
<br />
<br /><br /><div class="gmail_quote">Le 20 mars 2016 18:24:03 UTC+01:00, John Carlson <yottzumm@gmail.com> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<p dir="ltr">Well first we have to develop the unit test for the report.  Do you have anything from your open map development comparing xml?  If you look at X3DJSONLD/json2x3d.js you will see how I generate xml for a single case.  This will need to be run through the canonicalizer, then compared to the original .x3d file from x3d resources examples.  Ideally the script would checkout the examples from SourceForge or download a zip, convert to json (don or I have a script for this), convert to xml etc.  Checking out might be faster than downloading a zip.</p>
<p dir="ltr">John</p>
<div class="gmail_quote">On Mar 20, 2016 1:13 PM, "<a href="mailto:clement@igonet.fr">clement@igonet.fr</a>" <<a href="mailto:clement@igonet.fr">clement@igonet.fr</a>> wrote:<br type="attribution" /><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>   I thought about unit tests with text output in case of failure.<br />
<br />
   If you want mail report and so on in case of failure, I'm also confortable with generation of Junit xml report (from nodejs with mocha, or even from shell), confortable with Jenkins deployment (my main job is DevOps) and Dashboard report (also invested in Q.A. process).<br />
<br />
   Would you be ready to use and find founds for a server dedicated for this? A basic ssh access to a debian or centos server is enough. I know well a very good server provider in Canada, cheaper than AWS: <a href="https://www.ovh.com/ca/en" target="_blank">https://www.ovh.com/ca/en</a>/<br />
<br />
Clément.<br /><br /><div class="gmail_quote">Le 20 mars 2016 17:44:52 UTC+01:00, John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> a écrit :<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<p dir="ltr">It's more than just one unit test, there are around 3500 or so JSON files.  It needs to be robust and report errors in an actionable fashion, not just pass/fail.</p>
<div class="gmail_quote">On Mar 20, 2016 2:39 AM, "<a href="mailto:clement@igonet.fr" target="_blank">clement@igonet.fr</a>" <<a href="mailto:clement@igonet.fr" target="_blank">clement@igonet.fr</a>> wrote:<br type="attribution" /><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi John.<br />
Well, it just looks like Unit Test to put in place.<br />
I could be your guy.<br />
<br />
Clement.<br /><br /><div class="gmail_quote">Le 19 mars 2016 23:48:02 UTC+01:00, John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> a écrit :<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<pre>I am soliciting for a volunteer for X3D JSON to X3D XML conversion work.  This would entail:<br /><br />* Using the X3D JSON Loader associated code to convert X3D Resources examples JSON to XML (and DOM).<br />* Running the X3D Canonicalizer to convert to canonicalized X3D XML<br />* Running a comparison between X3D Resources examples X3D XML and XML output from X3D Canonicalizer<br />* Reporting any discrepancies to X3D JSON Working Group<br />* Integrating any improvements into the X3D JSON Loader associated code, contributing to X3D JSON Loader development work in generating X3D XML.<br /><br />Other activities may include:<br /><br />* Integrating the X3D JSON Schema into the X3D JSON Loader<br /><br />You must be a self-motivated self-starter.  JavaScript and Node.js (scripting) knowledge would be useful.  Limited knowledge of X3D desired.  Knowledge of XML entities, escaping, quoting, JSON desired, but may be learned.  Java knowledge might be useful in the
future.<br /><br />I’d do it myself, but I recently came out of retirement.<br /><br />The purpose of this is to validate that the JSON loader can essentially produces equivalent XML to X3dToJson.xslt input (roundtripping).  A blissful side effect we hope is that the JSON loader will be able to handle the various quoting and escaping that is coming towards us.<br /><br />Thanks,<br /><br />John<br /><hr /><br />x3d-public mailing list<br /><a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br /><a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br /></pre></blockquote></div><br />
<a href="mailto:clement@igonet.fr" target="_blank">clement@igonet.fr</a></div></blockquote></div>
</blockquote></div><br />
<a href="mailto:clement@igonet.fr" target="_blank">clement@igonet.fr</a></div></blockquote></div>
</blockquote></div><br />
clement@igonet.fr</blockquote></div><br>
clement@igonet.fr</body></html>