Returns a string with the XML format of the SDT variable data.
CharacterAttOrVar = &VarBasedOnSDT.ToXml( [boolean IncludeHeader ] , [boolean IncludeState] )
Attribute or variable based on Character data type
Variable based on an SDT
Optional parameter: If true, then the returned string contains this header tag: "<?xml version = "1.0" encoding = "UTF-8"?>". The default value is false.
Optional parameter: It only applies to Business Components variables. If true, then the returned string contains the auxiliary variables (old values, mode, initialized flag). Otherwise, it only contains the record data. The default value is true.
.NET Framework, Java, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)
It is the opposite of FromXML. It returns an XML string with the data of the SDT.
: The ToXML method applied to SDTs which have a blob data type item results in an XML in which the blob is represented as a base64 string (SAC #30011
One of the possible contents of the resulting string would be the following:
<SDTName xmlns = “name_Kb”>
Available since GeneXus X Evolution 2 Upgrade 2.
Structured Data Type (SDT) object
Serialization of Business Components