XSTypename

Define the XML Schema name of a 4GL type definition.

Note:
  1. The attribute must be used with the XSTypenamespace attribute; otherwise the compiler complains.
  2. The attribute is only allowed on a type definition.
TYPE myType RECORD ATTRIBUTE(XMLSequence,
                             XSTypeName="MyFirstType",
                             XSTypeNamespace="http://tempuri.org" )
  val1  FLOAT   ATTRIBUTE(XMLElement,XMLName="Val1"),
  val2  INTEGER ATTRIBUTE(XMLElement,XMLName="Val2",XMLOptional),
  attr  STRING  ATTRIBUTE(XMLAttribute,XMLName="Attr")
END RECORD
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
 targetNamespace="http://tempuri.org" elementFormDefault="qualified" >
  <xsd:complexType name="MyFirstType">
    <xsd:sequence>
      <xsd:element name="Val1" type="xsd:double" />
      <xsd:element name="Val2" type="xsd:int" minOccurs="0" />
    </xsd:sequence>
    <xsd:attribute name="Attr" type="xsd:string" use="required" />
  </xsd:complexType>
</xsd:schema>