FromXml Method

Official Content
This documentation is valid for:
Receives an XML string from which the SDT is loaded.

Syntax

[&Boolean =] &SDT.FromXml(&String[,&Messages])

Type Returned:
The type returned is a Boolean. It returns False in case of having an error, otherwise, it returns True.

Assigning the return value is optional. 
 
Where:
&String
    Attribute or variable string

&SDT
    Variable based on an SDT

&Messages

   Variable based on GeneXus's Messages data type. In case of an error, it contains the error information. This Parameter is optional.  

Description

It loads the &SDT structure from the &String variable content. This variable's XML format must be compatible with the SDT's structure.

Scope

Objects   Procedures, Transactions, Web PanelsPanel for Smart Devices
Languages .NET, Java.

See Also

ToXml Method
Structured Data Type (SDT) Object