XMLLib.convertFromXML function

XMLLib.convertFromXML copies an XML string to a record or handler.

Package

eglx.xml

Syntax
static function convertFromXML(xmlstr string in, eglType any const in);
xmlstr
An XML string.
eglType
A record or handler.
Example use

Although the second parameter is declared as ANY type, the EGL runtime verifies that the input is a record or handler. Because of the declaration, you can use the function in a library function that accepts any type of variable, as in the following example:

function convert(myRecord MyRecordPart in, record2Populate ANY const in)
   jsonLib.convertFromXML(myRecord.data, record2Populate);
end
Comments

For other details on the conversion, see “Correspondence between an XML string and an EGL variable.”

JSONLib.convertFromXML is the complement of the JSONLib.convertToXML function.

Compatibility

Table 1. Compatibility
Target Issue
Java No issues.
JavaScript No issues.