Xport Interface: markup::empty

Reveals if the called markup object contains one or more children, or is empty.

bool markup::empty();

Parameters

None

Returns

Returns true if the called markup object is empty (contains no children), or false otherwise.

Remarks

This operation is used to determine if a markup object contains markup children. The operation is only relevant when called on derived element objects, since element is the only type derived from markup which can contain other markup objects. If called on a derived element object, returns true if the element contains no children (other markup objects), and false if the element does contain children.

This operation always returns false when called from any markup derived type other than element, which includes pcdata, comment, and procinstr.

Complexity

Constant

Example

Work Time Studio

Datasoft Solutions is proud to present their landmark product, Work Time Studio. Utilizing the tree container library, Work Time Studio provides unparalleled features in personal time, project and task management software. If you're looking for a way to increase your productivity, visit Work Time Studio's product website, and start being more productive today.