WriteElement Method

Official Content
This documentation is valid for:
Writes an element with the indicated value.

Syntax

&DataType.WriteElement(ValueName, ElementValue)

Where:
ValueName
   Name of the element
 
ElementValue
   Value to be written inside the element
 
Notes:
  • When ElementValue is of the Character type, special characters are substituted by character sequences (the '<' is substituted by '<', the '>' by '>', and so on).
  • Unlike WriteStartElement, the element created does not contain sub-elements.

Scope

Extended Data Types: XmlWriter
Languages: .NET, Java, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)

See Also

Xmlwriter Data Type
WriteStartElement