Attributes to customize XML serialization / Mapping between simple 4GL and XML data types detail |
Map a 4GL Record to an XML Schema all structure.
The order in which the record members appear in the XML document is not significant.
DEFINE myall RECORD ATTRIBUTE(XMLAll,XMLName="Root") val1 INTEGER ATTRIBUTE(XMLName="Val1"), val2 FLOAT ATTRIBUTE(XMLAttribute,XMLName="Val2"), val3 STRING ATTRIBUTE(XMLName="Val3") END RECORD
<Root Val2="25.8"> <Val3>Hello world</Val3> <Val1>148</Val1> </Root>
<Root Val2="25.8"> <Val1>148</Val1> <Val3>Hello world</Val3> </Root>