XmlA (variable name : value:Sequence)
variable name = Constant or alphanumeric field (30A)
value = Constant or alphanumeric field (30A)
Sequence = Nummeric value (11P)
Return type:
Encoded XML string
Description:
XmlA returns a string variable encoded in XML. This is a primary function for building a xml string.
This is normally used in conjunction with PutXmlRec function
Example:
Eval string = xmlA(‘name’:sir_name)
Functions in the statement are allowed, and often used.
Eval string = xmlA(‘full_name’:%trim(sir_name) + ‘ ‘ + %trim(last_name) )
Sequence is used for having multiple fields with the same name. This is used for multi-line entry screens. This way the fields can be retrieved the same way.
Notes and Restrictions:
The variable name is case sensitive