setNodeValue method: Utility class

Syntax

setNodeValue(Value, Tag)

Description

Use this method to form an element using the given value and tag name.

Parameters

Parameter Description

Value

Specifies the string value to enclose in the tags.

Tag

Specifies the tag to enclose the value within, as a string.

Returns

A string element containing the value enclosed within the given tag.

Example

import PTFP_FEED:UTILITY:Utility;

Local PTFP_FEED:UTILITY:Utility &utility = create PTFP_FEED:UTILITY:Utility();

&str1 = &utility.setNodeValue("value", "p");

/* &str="<p>value</p>" */