XML Namespace property (SDT)

Official Content
This documentation is valid for:
The Xml Namespace 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 Namespace

XML Namespace Property GeneXus 15

Values

If this property value is not set, the default value, the SDT namespace, is used as XmlNamespace.

If an XMLName value was set, but XmlNamespace was not set, the namespace is NOT inherited, and an empty namespace is used. If the XMLName was not set, the namespace is not passed along.

Samples

Suppose the following Structured 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 Namespace property value is set = "MYNAMESPACE", the SDT Xml representation will be as follows:

<SDT1 xmlns="Knowledge Base" >
   <Item1 xmlnls="MYNAMESPACE">1</Item1>
   <item2>Value</item2>
</SDT1>

See Also

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