xml_SetNodeValue

Sets the value of the specified node.

Syntax

bool xml_SetNodeValue (StrParam)

Parameters

Two comma-separated values:
  1. The NodeID.
  2. The value to assign to the node.
  3. The action defaults the current object's value.

Smart parameters are supported.

Returns

Always True.

Level

All.

Details

Assigns a value to a specific node. The action can use Smart Parameters.
Example

The following example shows how creation of an XML for invoice line items might look.

xml_NewNode("LineItem,Invoice")
xml_SetAttributeValue("LineItem,id,@ID")
xml_NewNode("ItemID,LineItem")
xml_SetNodeValue("IdemID,@F\ItemID")
xml_NewNode("ItemDesc,LineItem")
xml_SetNodeValue("ItemDesc,@F\ItemDesc")
xml_NewNode("Qty,LineItem")
xml_SetNodeValue("Qty,@F\Qty")
xml_CommitNode("LineItem")