[x3d-public] Minimally acceptable X3D JSON document
Don Brutzman
brutzman at nps.edu
Sun Jan 7 01:41:41 PST 2018
On 1/5/2018 1:29 PM, John Carlson wrote:
> My testing of a JSON schema (I think Roy’s, but not sure), says this is a minimally acceptable X3D JSON document. Is this true? Or is there more to it?
>
> { "X3D": {"@version":"3.3", "@profile": "Immersive"}}
Minimally validatable XML encoding requires a Scene element, in both DTD and Schema.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 3.3//EN" "http://www.web3d.org/specifications/x3d-3.3.dtd">
<X3D profile='Immersive' version='3.3' xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance' xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-3.3.xsd'>
<Scene/>
</X3D>
You could also remove the xml declaration, DOCTYPE and schema information... but those are what provide well formed, XML DTD validation and XML Schema validation tests. At that point it is just a well-formed XML fragment, not a document.
Documentation references:
http://www.web3d.org/specifications/X3dDoctypeDocumentation3.3.html#X3D
http://www.web3d.org/specifications/X3dSchemaDocumentation3.3/x3d-3.3_X3D.html
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