XMLLib.convertFromXML copies an XML string to a record or handler.
eglx.xml
static function convertFromXML(xmlstr string in, eglType any const in);
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
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.
Target | Issue |
---|---|
Java | No issues. |
JavaScript | No issues. |