Description
Sets the local name of a PBDOM_ELEMENT object. This name refers to the local portion of the element tag name.
Syntax
pbdom_element_name.SetName(string strName)
Argument |
Description |
---|---|
pbdom_element_name |
The name of a PBDOM_ELEMENT object |
strName |
The new local name for the PBDOM_ELEMENT object |
Return value
Boolean.
Returns true if the local name of the PBDOM_ELEMENT object has been changed, and false otherwise.
Examples
The SetName method is invoked for the abc element of the following XML fragment:
<abc>My Data</abc>
The SetName method is invoked in the following PowerScript code, in which the PBDOM_ELEMENT object elem represents the abc element.
elem.SetName("def")
The following XML results:
<def>My Data</def>
Since the elem object still represents the same element, calling the SetName method changes the def element.
See also