<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>I'm having issues with x3d.py producing validate XML output on standard output. Can you guys help?  I can work around the problem with file output, but this is really a pain when working in bash.  Putting the XML header with version first would be great!</div><div><br></div><div>For now, I'll investigate file output from Python.  I miss the file output methods from X3DJSAIL!</div><div><br></div><div>$ head HelloWorld.py HeloWorld.x3d</div><div>==> HelloWorld.py <==</div><div>print('<!--')</div><div>import x3d</div><div>print('-->')</div><div>X3D0 = x3d.X3D()</div><div>X3D0.profile = "Immersive"</div><div>X3D0.version = "3.3"</div><div>head1 = x3d.head()</div><div>#Alternate encodings: VRML97, X3D ClassicVRML Encoding, X3D Compressed Binary Encoding (CBE), X3DOM, JSON</div><div>meta2 = x3d.meta()</div><div><a href="http://meta2.name">meta2.name</a> = "title"</div><div><br></div><div><br></div><div>==> HeloWorld.x3d <==</div><div><!--</div><div>x3d.py package 4.0.64.4 loaded, have fun with X3D Graphics!</div><div>--></div><div><?xml version="1.0" encoding="UTF-8"?></div><div><!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "<a href="https://www.web3d.org/specifications/x3d-3.3.dtd">https://www.web3d.org/specifications/x3d-3.3.dtd</a>"></div><div><X3D profile='Immersive' version='3.3' xmlns:xsd='<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>' xsd:noNamespaceSchemaLocation='<a href="https://www.web3d.org/specifications/x3d-3.3.xsd">https://www.web3d.org/specifications/x3d-3.3.xsd</a>'></div><div>  <head></div><div>    <meta content='HelloWorld.x3d' name='title'/></div><div>    <meta content='Simple X3D model example: Hello World!' name='description'/></div><div>    <meta content='30 October 2000' name='created'/></div></div></div></div>