Attributes to customize XML serialization / Mapping between simple 4GL and XML data types detail |
Map a one dimensional array to an XML Schema element that has more than one occurrence.
DEFINE myVar RECORD ATTRIBUTE(XMLName="Root") val1 INTEGER ATTRIBUTE(XMLName="Val1"), list DYNAMIC ARRAY ATTRIBUTE(XMLList) OF STRING ATTRIBUTE(XMLName="Element"), val2 FLOAT ATTRIBUTE(XMLName="Val2") END RECORD
<Root> <Val1>148</Val1> <Element>hello</Element> <Element>how</Element> <Element>are</Element> <Element>you</Element> <Val2>0.58</Val2> </Root>