wwxml::AddElement

This method can be used to easily create fully encoded XML element strings. The method returns a string for adding an element such as:

<tag>value</tag>

including the trailing carriage return. You pass in a name and value and the value is encoded into the appropriate XML string.

Optionally pass in an indent for the element.

o.AddElement(lcTag, lvValue, lnIndent)

Return Value

String

Parameters

lcTag
Tag to be created.

lvValue
The value for the element. Value can be of any type.

lnIndent
Optional - Indent for thte tag.

lcAttributes
One or more attributes that are to be added. For example: key="id1" count="10"

lcFoxType
Allows you to override the type that is generated. A special value of 'B' can be used to specify a binary value that will be base64 Encoded (requires VFP7 or later).


See also:

Class wwXML (High Level Methods)

© West Wind Technologies, 2023 • Updated: 11/08/18
Comment or report problem with topic