ProtoInstance

Element Information

Model

Attributes

Used By

Source

<xs:element name="ProtoInstance">
  <xs:annotation>
    <xs:appinfo>
      <xs:element name="fieldValue" type="MFNode" default="fieldValue"/>
      <xs:attribute name="additionalInterface" type="xs:string" default="X3DChildNode"/>
      <xs:attribute name="componentName" type="xs:NMTOKEN" fixed="Core"/>
      <xs:attribute name="componentLevel" type="xs:positiveInteger" fixed="2"/>ProtoInstance can override field default values via fieldValue initializations. Non-recursive nested ProtoInstance and ProtoDeclare statements are allowed within a ProtoDeclare.</xs:appinfo>
    <xs:documentation source="http://www.web3d.org/documents/specifications/19776-1/V3.3/Part01/concepts.html#ProtoInstanceAndFieldValueStatement"/>
  </xs:annotation>
  <xs:complexType>
    <xs:complexContent>
      <xs:extension base="X3DPrototypeInstance">
        <xs:attributeGroup ref="DEF_USE"/>
        <xs:attribute name="name" type="xs:NMTOKEN" use="required"/>
        <xs:attributeGroup ref="globalAttributes"/>
        <xs:attribute name="containerField" type="xs:NMTOKEN" default="children"/>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
</xs:element>

Sample