Xport Interface: document::document

Constructor for document.

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

Parameters

formation

A document_formation emumerator, which determines if the document will have root elements present after being created. 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 created, thus making the document a root document.

Returns

Nothing.

Remarks

Constructor for document. If supplied no argument, constructs an empty document object. If supplied the enumerator root_doc, the constructed document object will include the root elements. document_formation(0) and root_doc are the only possible arguments which can be passed in document's constructor.

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.