<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p><span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;">Here is the
XML export from a JSON file (HelloWorld.json attached) loaded
by x3dinput.py (there are some changes if you want an updated
copy). If you want the python code to do this, contact me. I
do have local modifications to x3d.py which will currently be
required. Don, can you add **kwargs to JSON and XML methods
for x3d.py, perhaps, and only have self and **kwargs as
parameters? Thanks!</span></span></p>
<p><span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;">A good eye (or
if someone wants do do a roundtrip test) at detecting
differences between the XML and the JSON is desired. I've
already spotted two comments missing! In particular, if
there's a specific ordering required in the XML, that would be
good to know. I'm off to see what's wrong with the comments!<br>
</span></span></p>
<p><span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;"><?xml
version="1.0" encoding="UTF-8"?>
</span><br>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN"
<a class="moz-txt-link-rfc2396E" href="https://www.web3d.org/specifications/x3d-3.3.dtd">"https://www.web3d.org/specifications/x3d-3.3.dtd"</a>>
<br>
<X3D profile='Immersive' version='3.3'
xmlns:xsd='<a class="moz-txt-link-freetext" href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>'
xsd:noNamespaceSchemaLocation='<a class="moz-txt-link-freetext" href="https://www.web3d.org/specifications/x3d">https://www.web3d.org/specifications/x3d</a><br>
-3.3.xsd'>
<br>
<head>
<br>
<meta content='HelloWorld.x3d' name='title'/>
<br>
<meta content='Simple X3D model example: Hello World!'
name='description'/>
<br>
<meta content='30 October 2000' name='created'/>
<br>
<meta content='11 June 2021' name='modified'/>
<br>
<meta content='Don Brutzman' name='creator'/>
<br>
<meta content='HelloWorld.tall.png' name='Image'/>
<br>
<meta content='<a class="moz-txt-link-freetext" href="https://en.wikipedia.org/wiki/Hello_world">https://en.wikipedia.org/wiki/Hello_world</a>'
name='reference'/>
<br>
<meta
content='<a class="moz-txt-link-freetext" href="https://en.wikipedia.org/wiki/Hello#.22Hello.2C_World.22_computer_program">https://en.wikipedia.org/wiki/Hello#.22Hello.2C_World.22_computer_program</a>'
name='reference'/>
<br>
<meta
content='<a class="moz-txt-link-freetext" href="https://en.wikipedia.org/wiki/">https://en.wikipedia.org/wiki/</a>"Hello,_World!"_program'
name='reference'/>
<br>
<meta
content='<a class="moz-txt-link-freetext" href="https://en.wikibooks.org/w/index.php?title=Computer_Programming/Hello_world">https://en.wikibooks.org/w/index.php?title=Computer_Programming/Hello_world</a>'
name='reference'/>
<br>
<meta content='<a class="moz-txt-link-freetext" href="https://www.HelloWorldExample.net">https://www.HelloWorldExample.net</a>'
name='reference2'/>
<br>
<meta content='<a class="moz-txt-link-freetext" href="https://www.web3d.org">https://www.web3d.org</a>'
name='reference'/>
<br>
<meta
content='<a class="moz-txt-link-freetext" href="https://www.web3d.org/realtime-3d/news/internationalization-x3d">https://www.web3d.org/realtime-3d/news/internationalization-x3d</a>'
name='reference'/>
<br>
<meta
content='<a class="moz-txt-link-freetext" href="https://www.web3d.org/x3d/content/examples/HelloWorld.x3d">https://www.web3d.org/x3d/content/examples/HelloWorld.x3d</a>'
name='reference'/>
<br>
<meta
content='<a class="moz-txt-link-freetext" href="https://X3dGraphics.com/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloWorld.x3d">https://X3dGraphics.com/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloWorld.x3d</a>'
name='reference'/>
<br>
<meta
content='<a class="moz-txt-link-freetext" href="https://X3dGraphics.com/examples/X3dForWebAuthors/Chapter01TechnicalOverview/HelloWorld.x3d">https://X3dGraphics.com/examples/X3dForWebAuthors/Chapter01TechnicalOverview/HelloWorld.x3d</a>'
name='identifier'/>
<br>
<meta
content='<a class="moz-txt-link-freetext" href="https://www.web3d.org/x3d/content/examples/license.html">https://www.web3d.org/x3d/content/examples/license.html</a>'
name='license'/>
<br>
<meta content='X3D-Edit 4.0,
<a class="moz-txt-link-freetext" href="https://savage.nps.edu/X3D-Edit">https://savage.nps.edu/X3D-Edit</a>' name='generator'/>
<br>
<meta content='HelloWorld.wrl' name='reference'/>
<br>
<meta content='HelloWorld.x3dv' name='reference'/>
<br>
<meta content='HelloWorld.x3db' name='reference'/>
<br>
<meta content='HelloWorld.xhtml' name='reference'/>
<br>
<meta content='HelloWorld.json' name='reference'/>
<br>
<meta content='14 October 2021' name='translated'/>
<br>
<meta content='X3dToJson.xslt,
<a class="moz-txt-link-freetext" href="https://www.web3d.org/x3d/stylesheets/X3dToJson.html">https://www.web3d.org/x3d/stylesheets/X3dToJson.html</a>'
name='generator'/>
<br>
<meta content='X3D JSON encoding:
<a class="moz-txt-link-freetext" href="https://www.web3d.org/wiki/index.php/X3D_JSON_Encoding">https://www.web3d.org/wiki/index.php/X3D_JSON_Encoding</a>'
name='reference'/>
<br>
</head>
<br>
<Scene>
<br>
<!-- Example scene to illustrate X3D nodes and fields (XML
elements and attributes) -->
<br>
<WorldInfo info='"Example scene to illustrate a simple X3D
model"' title='Hello World!'/>
<br>
<Group>
<br>
<Viewpoint DEF='ViewUpClose' centerOfRotation='0 -1 0'
description='Hello world!' position='0 -1 7'/>
<br>
<Transform rotation='0 1 0 3'>
<br>
<Shape>
<br>
<Appearance>
<br>
<Material DEF='MaterialOffWhite' diffuseColor='0.980392
0.976471 0.964706'/>
<br>
<ImageTexture DEF='ImageCloudlessEarth'
url='"earth-topo.png" "earth-topo.jpg" "earth-topo-small.gif"
"<a class="moz-txt-link-freetext" href="https://www.web3d.org/x3d/content/examples/Basic/earth-to">https://www.web3d.org/x3d/content/examples/Basic/earth-to</a><br>
po.png"
<a class="moz-txt-link-rfc2396E" href="https://www.web3d.org/x3d/content/examples/Basic/earth-topo.jpg">"https://www.web3d.org/x3d/content/examples/Basic/earth-topo.jpg"</a>
<a class="moz-txt-link-rfc2396E" href="https://www.web3d.org/x3d/content/examples/Basic/earth-topo-small.gif">"https://www.web3d.org/x3d/content/examples/Basic/earth-topo-small.gif"</a>'/>
<br>
</Appearance>
<br>
<Sphere/>
<br>
</Shape>
<br>
</Transform>
<br>
<Transform translation='0 -2 0'>
<br>
<Shape>
<br>
<Appearance>
<br>
<Material USE='MaterialOffWhite'/>
<br>
</Appearance>
<br>
<Text DEF='TextMessage' string='"Hello" "world!"'>
<br>
<FontStyle justify='"MIDDLE" "MIDDLE"'/>
<br>
</Text>
<br>
</Shape>
<br>
</Transform>
<br>
</Group>
<br>
</Scene>
<br>
</X3D><br>
</span></p>
</body>
</html>