<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE X3D PUBLIC "ISO//Web3D//DTD X3D 4.0//EN" "https://www.web3d.org/specifications/x3d-4.0.dtd">
<X3D profile='Interchange'
version='4.0'
xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance'
xsd:noNamespaceSchemaLocation
='
https://www.web3d.org/specifications/x3d-4.0.xsd
'
>
<head>
</head>
<!--
-->
<Scene>
<WorldInfo title='TestMetadataNodes.x3d'/>
<Background skyColor='0.5 0.5 1'/>
<Anchor description='Click to see documentation example'
url='
TestMetadataNodesIndex.html"https://www.web3d.org/x3d/content/examples/Basic/development/TestMetadataNodesIndex.html" '
>
<Shape>
<Appearance>
<Material diffuseColor='0.8 0.9 0.9'/>
</Appearance>
<Text length='0' string='"TestMetadataNodes.x3d" "shows X3D4 Metadata nodes"'>
<FontStyle DEF='TextFont' justify='"MIDDLE" "MIDDLE"' style='BOLD'/>
</Text>
</Shape>
</Anchor>
<Group>
<
MetadataSet DEF='
M0'
containerField='
metadata'
name='
TestSet'>
<
MetadataBoolean DEF='
M1'
value='
true false true'/>
<
MetadataString DEF='
M2'
value='
"internal" "metadata"'/>
<
MetadataDouble DEF='
M3'
value='
1.0'/>
<!-- intermediate comment should not be sorted -->
<
MetadataFloat DEF='
M4'
value='
1.0'/>
<
MetadataInteger DEF='
M5'
value='
1'/>
<
MetadataSet DEF='
M6'>
<!-- presence of comment will suppress warning about no MetadataSet children found -->
</
MetadataSet>
</
MetadataSet>
</Group>
<NavigationInfo>
<MetadataString containerField='metadata' name='Test illegal parent under VRML97'/>
</NavigationInfo>
<!-- Metadata nodes are allowed as root nodes in X3D4, but must define containerField='metadata' -->
<!-- https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-DIS/Part01/concepts.html#Rootnodes
-->
<
MetadataSet USE='
M0'
containerField='
metadata'/>
<
MetadataBoolean USE='
M1'
containerField='
metadata'/>
<
MetadataString USE='
M2'
containerField='
metadata'/>
<
MetadataDouble USE='
M3'
containerField='
metadata'/>
<
MetadataFloat USE='
M4'
containerField='
metadata'/>
<
MetadataInteger USE='
M5'
containerField='
metadata'/>
<
MetadataSet USE='
M6'
containerField='
metadata'/>
<!-- Test case: Metadata nodes are only allowed to contain other metadata nodes, test fragment follows -->
<!-- <MetadataSet DEF='ErroneousChild'> <DirectionalLight/> </MetadataSet> -->
</Scene>
</X3D>
<!--
-->
-->
<!--
Online at
https://www.web3d.org/x3d/content/examples/Basic/development/TestMetadataNodesIndex.html
-->
<!--
Version control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Basic/development/TestMetadataNodes.x3d
-->
<!--
Color legend: X3D terminology
<X3dNode
DEF='idName' field='value'/>
matches XML terminology
<XmlElement
DEF='idName' attribute='value'/>
(Light-blue background: event-based behavior node or statement)
(Grey background inside box: inserted documentation)
(Magenta background: X3D Extensibility)
-->
<!--
For additional help information about X3D scenes, please see X3D Tooltips, X3D Resources, and X3D Scene Authoring Hints.
-->