Attributes to customize XML serialization / Customizing XML serialization |
Map a one dimensional array to an XML Schema element that has more than one occurrence.
DEFINE myVar RECORD ATTRIBUTES(XMLName="Root") val1 INTEGER ATTRIBUTES(XMLName="Val1"), list DYNAMIC ARRAY ATTRIBUTES(XMLList) OF STRING ATTRIBUTE(XMLName="Element"), val2 FLOAT ATTRIBUTES(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>