XML Name property (SDT)

Official Content
This documentation is valid for:
The Xml Name property allows you to modifiy the behaviour of the xml representation for each item of an structured data type.

Description

This property is located at SDT\ItemName\Properties\Xml information section\Xml Name

 XML Name Property GeneXus 15

Values

If this property value is not set, the default value, the SDT element name, is used as XmlName.

Samples

Suppose the following Strucutured data type:

SDT1

   Item1 Num(4)
   Item2 Char(20)

Which is populated throughout the following code

SDT1
{
   item1 = 1 
   item2 = 'Value'
}

When the Item1 Xml Name property value is set = "MYNAME" (and Xml Type Property = Element), the SDT Xml representation will be as follows:

<SDT1 xmlns="Knowledge Base" >
   <MYNAME>1</MYNAME>
   <item2>Value</item2>
</SDT1>

See Also

Xml Information Properties (SDT)
Xml Type property (SDT)
XML Namespace property (SDT)
Xml SoapType property (SDT)
XML Null Serialization property (SDT)