Xport Interface: document::clear

Clears the contents of the document object.

void document::clear(
document_formation formation = document_formation(0)
);

Parameters

formation

A document_formation emumerator, which determines if the document will have root elements present after being cleared. This optional argument can be one of two values, the default value of document_formation(0), and root_doc. If the document object is to be cleared of all elements, no argument should be supplied. Supply the root_doc argument to have the document contain the root elements after being cleared, thus making the document a root document.

Returns

Nothing.

Remarks

Use this operation to clear the contents of the document. When no argument is present, this operation will leave the document empty of all markup objects. When the root_doc argument is present, this operation will clear the contents, then insert the root elements.

Complexity

Linear

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.