Typical use case for scene files are:
<?xml version="1.0"?> <!-- required -->
<scene> <!-- required -->
<object_type1>
<object_prop1>...</object_prop1>
<object_prop2>...</object_prop2>
<children>
<object_type2>...</object_type2>
</children>
</object_type1>
</scene>
Of course, there are plenty of exceptions to this general rule of thumb. For example, layer and color is specified by enclosing an object (or indeed several objects) in a <layer> or <color> tag, e.g.:
<?xml version="1.0"?>
<scene>
<color r="0" g="0" b="1">
<sphere/>
<cube/>
</color>
</scene>
Object instantiations, layer and color aside, there is a handful other elements that can be used - which are discussed in the section Advanced topics.
<?xml version="1.0"?>
<scene>
<model>
<!-- file is specific to the model object, and simply defines
which model to load -->
<file>dp-ptu-d46/bottom.pbmf</file>
<!-- set the name of the object to "ptu_bottom" -->
<name>ptu_bottom</name>
</model>
<joint>
<name>pan</name>
<!-- set the joint's rotational axis -->
<axis>0 0 1</axis>
<children>
<!-- add a few children to the joint... -->
<model>
<file>dp-ptu-d46/middle.pbmf</file>
<name>ptu_middle</name>
</model>
<joint>
<name>tilt</name>
<axis>0 1 0</axis>
<transform>
<!-- move the joint 9.11 cm along the Z-axis -->
<translate>0 0 0.0911</translate>
</transform>
<children>
<model>
<file>dp-ptu-d46/top.pbmf</file>
<name>ptu_top</name>
</model>
</children>
</joint>
</children>
</joint>
</scene>
1.5.6