AddContent

Description

Adds the input PBDOM_OBJECT as a child of the PBDOM_ATTRIBUTE.

Syntax

pbdom_attribute_name.AddContent( pbdom_object pbdom_object_ref)

Argument

Description

pbdom_attribute_name

The name of the PBDOM_ATTRIBUTE

pbdom_object_ref

The PBDOM_OBJECT to add


Return value

PBDOM_OBJECT. The PBDOM_ATTRIBUTE modified.

Throws

EXCEPTION_INAPPROPRIATE_USE_OF_PBDOM_OBJECT -- If the input PBDOM_OBJECT is not a PBDOM_TEXT or PBDOM_ENTITYREFERENCE object.

EXCEPTION_USE_OF_UNNAMED_OBJECT -- If the input PBDOM_OBJECT has not been given a user-defined name.

Usage

pbdom_object_ref must be a reference to a PBDOM_TEXT or PBDOM_ENTITYREFERENCE object.

See also

GetContent

InsertContent

RemoveContent

SetContent