Parser

This element is used to define a parser.

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
Index xs:unsignedInt optional

Source

<xs:element name="Parser">
  <xs:annotation>
    <xs:documentation xml:lang="en">This element is used to define a parser.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:choice minOccurs="0" maxOccurs="unbounded">
      <xs:element name="PackageReference" type="xs:string">
        <xs:annotation>
          <xs:documentation xml:lang="en">A reference to a named package definition.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Parameters">
        <xs:annotation>
          <xs:documentation xml:lang="en">This element contains a list of instrument level parameters.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:choice minOccurs="0" maxOccurs="unbounded">
            <xs:element ref="ParameterReference"/>
            <xs:element name="Parameter">
              <xs:annotation>
                <xs:documentation xml:lang="en">This element defines an instrument level parameter</xs:documentation>
              </xs:annotation>
              <xs:complexType>
                <xs:complexContent>
                  <xs:extension base="ParameterType">
                    <xs:attribute name="Name" type="xs:string" use="required"/>
                    <xs:attribute name="VendorName" type="xs:string" use="required"/>
                    <xs:attribute name="Direction" use="optional" default="Read">
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:enumeration value="Read"/>
                          <xs:enumeration value="Write"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:attribute>
                    <xs:attribute name="Enabled" type="xs:boolean" use="optional" default="true"/>
                  </xs:extension>
                </xs:complexContent>
              </xs:complexType>
            </xs:element>
          </xs:choice>
        </xs:complexType>
      </xs:element>
    </xs:choice>
    <xs:attribute name="Index" type="xs:unsignedInt"/>
  </xs:complexType>
</xs:element>

Sample