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