Attributes to customize XML serialization / Mapping between simple 4GL and XML data types detail |
Define whether the variable can be missing or not. It specifies how a 4GL NULL value is interpreted in XML.
DEFINE myVar RECORD ATTRIBUTE(XMLName="Root") val1 INTEGER ATTRIBUTE(XSDint,XMLName="ValOne"), val2 FLOAT ATTRIBUTE(XSDdouble,XMLName="ValTwo",XMLOptional) END RECORD
<Root> <ValOne>458</ValOne> <ValTwo>58.48</ValTwo> </Root>
<Root> <ValOne>458</ValOne> </Root>