XMLSequence (Optional)

Map a 4GL Record to an XML Schema sequence structure.The order in which the record members appear in the XML document must match the order of the 4GL Record. The XMLSequence attribute also supports a "nested" value that removes the surrounding XML tag.

Note: Nested sequence records cannot be defined as main variables; there must always be a surrounding variable.
DEFINE mysequence RECORD ATTRIBUTE(XMLSequence,XMLName="Root")
  val1  INTEGER   ATTRIBUTE(XMLName="Val1"),
  val2  FLOAT     ATTRIBUTE(XMLAttribute,XMLName="Val2"),
  val3  STRING    ATTRIBUTE(XMLName="Val3")
END RECORD
<Root Val2="25.8">
  <Val1>-859</Val1>
  <Val3>Hello world</Val3>
</Root>
Nested example:
DEFINE myVar RECORD ATTRIBUTE(XMLName="Root")
  val1  INTEGER   ATTRIBUTE(XMLName="Val1"),
  val2  FLOAT     ATTRIBUTE(XMLAttribute,XMLName="Val2"),
  sequence RECORD   ATTRIBUTE(XMLSequence="nested")
    seq1   INTEGER   ATTRIBUTE(XMLName="SeqOne"),
    seq2   FLOAT     ATTRIBUTE(XMLName="SeqTwo")
  END RECORD,
  val3  STRING    ATTRIBUTE(XMLName="Val3")
END RECORD
<Root Val2="25.8">
  <Val1>148</Val1>
  <SeqOne>6584</SeqOne>
  <SeqTwo>85.597</SeqTwo>
  <Val3>Hello world</Val3>
</Root>