[x3d-public] Comparing Joe*.* XML files

John Carlson yottzumm at gmail.com
Sat Nov 21 13:50:08 PST 2020


I get an XML file from the archives, for example JoeKick.x3d, convert to
JSON using X3dToJson.xslt and then convert back to XML using X3DJSONLD.
The I used xmldiff.js on the two XML files.  I get:

$ node ../node/xmldiff.js JoeKick.x3d JoeProcessedKick.x3d
================================================================================
C:\Users\coderextreme\X3DJSONLD\src\main\node\xmldiff.js JoeKick.x3d
JoeProcessedKick.x3d
@5 /X3D/$/xsd:noNamespaceSchemaLocation
< "https://www.web3d.org/specifications/x3d-4.0.xsd"
@6/X3D/Scene/0/Group/0/HAnimHumanoid/0/MetadataSet/0/$/containerField
>"metadata"
@4
/X3D/Scene/0/Group/0/HAnimHumanoid/0/MetadataSet/0/MetadataString/0/$/containerField
< "value"
@4 /X3D/Scene/0/Group/0/HAnimHumanoid/0/HAnimJoint/0/$/containerField
< "skeleton"
@6/X3D/Scene/0/Group/0/HAnimHumanoid/0/HAnimJoint/0/HAnimSegment/0/HAnimSite/0/Transform/0/S
hape/0/IndexedLineSet/0/$/containerField
>"geometry"
@6/X3D/Scene/0/Group/0/HAnimHumanoid/0/HAnimJoint/0/HAnimSegment/0/HAnimSite/0/Transform/0/S
hape/0/IndexedLineSet/0/Coordinate/0/$/containerField
>"coord"
@4 /X3D/Scene/0/Group/0/HAnimHumanoid/0/Shape/0/$/containerField
< "skin"
@6/X3D/Scene/0/Group/0/HAnimHumanoid/0/Shape/0/Appearance/0/ImageTexture/0/$/containerField
>"texture"
@6/X3D/Scene/0/Group/0/HAnimHumanoid/0/Shape/0/IndexedFaceSet/0/$/containerField
>"geometry"
@6/X3D/Scene/0/Group/0/HAnimHumanoid/0/Shape/0/IndexedFaceSet/0/Coordinate/0/$/containerFiel
d
>"coord"
@6/X3D/Scene/0/Group/0/HAnimHumanoid/0/Shape/0/IndexedFaceSet/0/TextureCoordinate/0/$/contai
nerField
>"texCoord"
@6/X3D/Scene/0/Group/4/Transform/0/Shape/0/Appearance/0/ImageTexture/0/$/containerField
>"texture"
@6/X3D/Scene/0/Group/4/Transform/0/Shape/0/IndexedFaceSet/0/$/containerField
>"geometry"
@6/X3D/Scene/0/Group/4/Transform/0/Shape/0/IndexedFaceSet/0/Coordinate/0/$/containerField
>"coord"
@6/X3D/Scene/0/Group/5/Transform/1/Shape/0/IndexedLineSet/0/$/containerField
>"geometry"
@6/X3D/Scene/0/Group/5/Transform/1/Shape/0/IndexedLineSet/0/Coordinate/0/$/containerField
>"coord"
@6/X3D/Scene/0/Group/5/Transform/2/Shape/0/IndexedLineSet/0/$/containerField
>"geometry"
@6/X3D/Scene/0/Group/5/Transform/3/Shape/0/IndexedLineSet/0/$/containerField
>"geometry"

Note that most of these are new containerFields, but there are perhaps
important differences earlier in the files.

The only approach that I see might work would be to include mapToMethod.js
in the JSON -> XML conversion. One might argue that containerFields may not
be required to render XML. One needs to examine how well mapToMethod.js
works in general.

Indeed, how are the JSON files themselves different?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20201121/5d6a7da1/attachment-0001.html>


More information about the x3d-public mailing list