WriteNSElement method

Official Content
This documentation is valid for:

Equal to WriteElement, but using namespaces.

Syntax

&DataType.WriteNSElement(LocalName [ ,NameSpaceURI [ ,Value ] ] )

Where:
LocalName
   Local Name of the element to be written

NameSpaceURI
   URI of namespace

Value
   Value of the element to be written

Description

The prefix is automatically determined, based on the defined prefixes in the element’s environment. If no prefix is associated to the specified URI, a name space is defined by default along with the element.

Example

WriteNSElement(‘Price’, ’20.5’,‘http://www.genexus.com’)

Generates the following:

prefix:Price  20.5   /prefix:Price or
Price xmlns=” [http://www.genexus.com/|http://www.genexus.com]”   20.5   /Price

Scope

Extended data types XMLWriter Data Type
Languages .NET, Java, Ruby, Visual FoxPro
   

See also

XMLWriter Data Type
WriteNSStartElement Method